20 lines
410 B
Java
20 lines
410 B
Java
import java.util.Scanner;
|
|
import java.util.ArrayList;
|
|
|
|
public class MyGarden{
|
|
public static void main(String[] args){
|
|
Scanner scnr = new Scanner(System.in);
|
|
GardenManager myGarden = new GardenManager();
|
|
|
|
myGarden.inputPlants(scnr);
|
|
|
|
printArrayList(myGarden.getMyGardenList());
|
|
}
|
|
public static void printArrayList(ArrayList<Plant> garden){
|
|
for (Plant plant:garden){
|
|
plant.printInfo();
|
|
}
|
|
}
|
|
}
|
|
|