MammalLion=newMammal("Lion","Mammal","Carnivore","Grassland","Strong compact body with sharp teeth and a long tail");
MammalBoar=newMammal("Boar","Mammal","Omnivore","Forest","Large head with thick brown furred body");
MammalDeer=newMammal("Deer","Mammal","Herbivore","Forest","Light-brown furred with a small black nose - male deers have large antlers on their head aswell");
//adding mammal objects to single array
animalList.add(Lion);
animalList.add(Boar);
animalList.add(Deer);
//creating Bird objects
BirdFlamingo=newBird("Flamingo","Bird","Omnivore","Aquatic","Large pink birds with long necks and sticklike legs");
BirdPenguin=newBird("Penguin","Bird","Carnivore","Aquatic","Penguins have large heads and a short neck as well as an elongated body");
BirdOstrich=newBird("Ostrich","Bird","Herbivore","Grassland","Large flightless bords which have a long neck protuding from heir round body");
//adding Bird objects to single array
animalList.add(Flamingo);
animalList.add(Penguin);
animalList.add(Ostrich);
//creating Fish objects
FishClownfish=newFish("Clownfish","Fish","Omnivore","Aquatic","Very bright orange and white striped small fish");
FishParrotfish=newFish("Parrotfish","Fish","Herbivore","Aquatic","Blunt headed with a brightly colourful body");
FishOctopus=newFish("Octopus","Fish","Carnivore","Aquatic","Octopus have bulbous heads with eight legs");
//adding Fish objects to single array
animalList.add(Clownfish);
animalList.add(Parrotfish);
animalList.add(Octopus);
//creating Reptile objects
ReptileCrocodile=newReptile("Crocodile","Reptile","Carnivore","Aquatic","Long bodied with many sharp teeth and a powerful jaw");
ReptileTurtle=newReptile("Turtle","Reptile","Omnivore","Aquatic","Large shell which covers their body along with four fins");
ReptileSnake=newReptile("Snake","Reptile","Carnivore","Desert","A long thin body with no legs");
//adding Reptile objects to single array
animalList.add(Crocodile);
animalList.add(Turtle);
animalList.add(Snake);
System.out.println("Welcome to the York St John Zoo!");
while(true){
System.out.println("Please choose from one of the following options.");
System.out.println("1. Display all details of a single animal.\n2. Display the details for a list of animals in the zoo.\n3. Generate a list of animals of a specific type.\n4. Display the food required for a list of animals.\n5. Display a list of all animals that come from a specific environment.\n");