Commit 5446dec9 authored by Jacob's avatar Jacob

Final ver

parent ea6edf31
......@@ -63,10 +63,6 @@ public class zooMain {
if (tempAns == 5) {
habitatAnimal(animalList, sc);
}
else {
System.out.println("That was not a valid option!");
}
}
}
......@@ -82,10 +78,6 @@ public class zooMain {
+ "Habitat: " + tempAnimal.enviroment + "\n"
+ "Description: " + tempAnimal.description + "\n");
}
else {
System.out.println("That was not a valid option!");
}
}
}
......@@ -104,16 +96,12 @@ public class zooMain {
+ "Habitat: " + tempAnimal.enviroment + "\n"
+ "Description: " + tempAnimal.description + "\n");
}
else {
System.out.println("That was not a valid option!");
}
}
}
public static void dietAnimal(ArrayList<allAnimals> animalList, Scanner sc) {
System.out.println("What type of diet would you like to search for? (Case sensitive) \n"
+ "Carnovire\n"
+ "Carnivore\n"
+ "Herbivore\n"
+ "Omnivore\n\n");
String tempDiet = sc.next();
......@@ -125,10 +113,7 @@ public class zooMain {
+ "Habitat: " + tempAnimal.enviroment + "\n"
+ "Description: " + tempAnimal.description + "\n");
}
else {
System.out.println("That was not a valid option!");
}
}
}
......@@ -150,10 +135,7 @@ public class zooMain {
+ "Habitat: " + tempAnimal.enviroment + "\n"
+ "Description: " + tempAnimal.description + "\n");
}
else {
System.out.println("That was not a valid option!");
}
}
}
}
......
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