Commit 22a7f180 authored by Eky's avatar Eky

new update

parent 4c41e2a6
......@@ -63,7 +63,8 @@ public class Main
System.out.println("2: Display all animals in zoo.");
System.out.println("3: Display list of animals of specific type.");
System.out.println("4: Display food required for list of animals of certain type.");
System.out.println("5: Display all animals from a certain environment.");
System.out.println("5: Display food required for all animals.");
System.out.println("6: Display all animals from a certain environment.");
System.out.println("x: Exit.");
......@@ -93,6 +94,11 @@ public class Main
System.out.println(ysjZoo.foodList(types));
}
else if(input.equals("5"))
{
System.out.println("\n\nFood required for all animals:");
System.out.println(ysjZoo.foodList(zooAnimals));
}
else if(input.equals("6"))
{
System.out.println("\n\nPlease enter name of environment (capital letter for name):");
name = scan.next();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment