Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- public static void main(String[] args) {
- Field field = new Field("Ilko", 20, 50);
- IrrigationSystem irrigationSystem = new IrrigationSystem("Ilko e golqm", 30, true);
- field.displayInfo();
- System.out.println("The new moisture level of the field is: " + field.waterField(30));
- System.out.println(irrigationSystem);
- System.out.println(irrigationSystem.Irrigate("Ilko e golqm", 20.5));
- System.out.println("The new water amount is: " + irrigationSystem.getWaterCapacity());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement