school/plant-information/MyGarden.java

20 lines
410 B
Java
Raw Normal View History

2021-02-10 15:11:44 -05:00
import java.util.Scanner;
import java.util.ArrayList;
public class MyGarden{
public static void main(String[] args){
Scanner scnr = new Scanner(System.in);
2021-02-13 11:05:55 -05:00
GardenManager myGarden = new GardenManager();
2021-02-10 15:11:44 -05:00
2021-02-13 11:05:55 -05:00
myGarden.inputPlants(scnr);
2021-02-10 15:11:44 -05:00
2021-02-13 11:05:55 -05:00
printArrayList(myGarden.getMyGardenList());
}
2021-02-10 15:11:44 -05:00
public static void printArrayList(ArrayList<Plant> garden){
for (Plant plant:garden){
plant.printInfo();
}
}
}
2021-02-13 11:05:55 -05:00