publicAnimal(StringName,Stringhabitat,Stringfood,Stringlegs,Stringwingspan,Stringlength,Stringdescription){//assigns arguments to animal class and all extensions
packageinheritanceTest;//importing utilities needed for this program
importjava.util.ArrayList;
importjava.util.Random;
importjava.util.Scanner;
publicclassTest{
publicclassTest{//collective class corresponding to file name
publicstaticvoidanimals(){
ArrayList<Animal>Animals=newArrayList<Animal>();
publicstaticvoidanimals(){//class for all animals
ArrayList<Animal>Animals=newArrayList<Animal>();//initialise arraylist for all animals
//defining all animals and their features
MammalPBear=newMammal("Name: Polar Bear\n","Habitat: Arctic\n","Eats: Seals\n","4 Legs\n","Polar Bears are large white bears that live in the Arctic.\nThey are carnivores and often search in the water for seals to hunt.\n"," ","");
MammalSeal=newMammal("Name: Seal\n","Habitat: Arctic\n","Eats: Fish\n","2 Legs\n","Seals are large aquatic mammals that live in the arctic and antarctic\nThey live in the sea primarily and often hunt schools of fish.\n","","");
MammalCamel=newMammal("Name: Camel\n","Habitat: Desert\n","Eats: Plants\n","4 Legs\n","Camels are desert mammals that exist in worldwide deserts.\nThey eat dry vegetation and plants in the environment.\n","","");
...
...
@@ -39,12 +39,12 @@ public class Test {
ReptilePython=newReptile("Name: Python\n","Habitat: Jungle/Swamps\n","Eats: Small/Medium Mammals\n","0 Legs\n","Pythoins are a type of snake found in the jungle/swamp environments.\nThey feed on small to medium mammals local to their habitat.\n","","");
ReptileLizard=newReptile("Name: Common Lizard\n","Habitat: All Habitats\n","Eats: Insects\n","4 Legs\n","The common lizard can be found in many environments worldwide.\nThey feed on small insects from all environments.\n","","");
ReptileChameleon=newReptile("Name: Chameleon\n","Habitat: Rainforests\n","Eats: Insects\n","4 Legs\n","Chameleons are known for their camouflage ability and are\nfound in rainforests. They feed on exotic bugs.\n","","");
//picks a random number which corresponds to a selection within the array that sends a single animal's details to be printed
Randomrand=newRandom();
intupperbound=28;
...
...
@@ -99,7 +99,7 @@ public class Test {
publicstaticvoidMammals(){
ArrayList<Animal>Mammals=newArrayList<Animal>();
ArrayList<Animal>Mammals=newArrayList<Animal>();//arraylist definition for mammals
MammalPBear=newMammal("Name: Polar Bear\n","Habitat: Arctic\n","Eats: Seals\n","4 Legs\n","Polar Bears are large white bears that live in the Arctic.\nThey are carnivores and often search in the water for seals to hunt.\n"," ","");
MammalSeal=newMammal("Name: Seal\n","Habitat: Arctic\n","Eats: Fish\n","2 Legs\n","Seals are large aquatic mammals that live in the arctic and antarctic\nThey live in the sea primarily and often hunt schools of fish.\n","","");
...
...
@@ -127,7 +127,7 @@ public class Test {
publicstaticvoidbirds(){
ArrayList<Animal>Bird=newArrayList<Animal>();
ArrayList<Animal>Bird=newArrayList<Animal>();//arraylist definition for birds
BirdPenguin=newBird("Name: Penguin\n","Habitat: Antarctic\n","Eats: Sealife\n","2 Legs\n","Wingspan: 30in\n","Penguins are large Antarctic birds that come in many forms.\nThey feed on fish in their envornment.\n","");
BirdSnowOwl=newBird("Name: Snow Owl\n","Habitat: Arctic\n","Eats: Lemmings/Small Animals\n","2 Legs\n","Wingspan: 165cm\n","Snow Owls are small owls that live in the arctic\nThey feed on lemmings and small rodents.\n","");
...
...
@@ -155,7 +155,7 @@ public class Test {
publicstaticvoidfish(){
ArrayList<Animal>Fishes=newArrayList<Animal>();
ArrayList<Animal>Fishes=newArrayList<Animal>();//arraylist definition for fish
Fishcrab=newFish("Name: Crab\n","Habitat: All Environments\n","Eats: Carcasses/Plants\n","10 Legs\n","Length: Between 10cm - 2m\n","Crabs are all-environment crustaceans that scavenge\nfor fish carcasses and plants in their environment\n","");
FishSnailfish=newFish("Name: Snailfish\n","Habitat: Cold Water\n","Eats: Crustaceans\n","Length: 30cm\n","Snailfish are cold water fish that are often found in\ncolder climates. they feed on crustaceans.\n","","");
...
...
@@ -178,7 +178,7 @@ public class Test {
publicstaticvoidreptiles(){
ArrayList<Animal>Reptiles=newArrayList<Animal>();
ArrayList<Animal>Reptiles=newArrayList<Animal>();//arraylist definition for reptiles
ReptileTortoise=newReptile("Name: Tortoise\n","Habitat: Deserts\n","Eats: Plants/Vegetation\n","4 Legs\n","Tortoises are large, shelled reptiles that live a long time.\nThey feed on desert plants and vegatation.\n","","");
ReptileBDragon=newReptile("Name: Bearded Dragon\n","Habitat: Deserts\n","Eats: Plants/Insects\n","4 Legs\n","Bearded Dragons are medium sized, lizard type reptiles.\nThey feed on plants and insects in the desert environment.\n","","");
...
...
@@ -201,7 +201,7 @@ public class Test {
}
publicstaticvoiddesert(){
ArrayList<Animal>Desert=newArrayList<Animal>();
ArrayList<Animal>Desert=newArrayList<Animal>();//arraylist definition for desert animals
MammalCamel=newMammal("Name: Camel\n","Habitat: Desert\n","Eats: Plants\n","4 Legs\n","Camels are desert mammals that exist in worldwide deserts.\nThey eat dry vegetation and plants in the environment.\n","","");
MammalCoyote=newMammal("Name: Coyote\n","Habitat: Desert\n","Eats: Animals/Fruit\n","4 Legs\n","Coyotes are desert and plain animals that are typically feral.\nThey feed on other animals and fruit.\n","","");
BirdVulture=newBird("Name: Vulture\n","Habitat: Desert\n","Eats: Carcasses\n","2 Legs\n","Wingspan: 2.2m\n","Vultures are large desert scavengers that feed\non dead animals due to their inability to hunt.\n","");
...
...
@@ -223,7 +223,7 @@ public class Test {
}
publicstaticvoidarctic(){
ArrayList<Animal>Arctic=newArrayList<Animal>();
ArrayList<Animal>Arctic=newArrayList<Animal>();//arraylist definition for arctic animals
MammalPBear=newMammal("Name: Polar Bear\n","Habitat: Arctic\n","Eats: Seals\n","4 Legs\n","Polar Bears are large white bears that live in the Arctic.\nThey are carnivores and often search in the water for seals to hunt.\n"," ","");
MammalSeal=newMammal("Name: Seal\n","Habitat: Arctic\n","Eats: Fish\n","2 Legs\n","Seals are large aquatic mammals that live in the arctic and antarctic\nThey live in the sea primarily and often hunt schools of fish.\n","","");
FishSnailfish=newFish("Name: Snailfish\n","Habitat: Cold Water\n","Eats: Crustaceans\n","Length: 30cm\n","Snailfish are cold water fish that are often found in\ncolder climates. they feed on crustaceans.\n","","");
...
...
@@ -242,7 +242,7 @@ public class Test {
}
publicstaticvoidjungle(){
ArrayList<Animal>Jungle=newArrayList<Animal>();
ArrayList<Animal>Jungle=newArrayList<Animal>();//arraylist definition for jungle animals
MammalJaguar=newMammal("Name: Jaguar\n","Habitat: Jungle/Rainforest\n","Eats: Deer/Capybara\n","4 Legs\n","Jaguars are big cat predators that live in\njungle and rainforest environments.\n They feed on deer and capybara local to the environent.\n","","");
MammalCapybara=newMammal("Name: Capybara\n","Habitat: Swamp/Grass\n","Eats: Grass\n","4 Legs\n","Capybara are medium sized mammals that live in swampy and grassy areas.\nThey feed on grass primarily.\n","","");
BirdParrot=newBird("Name: Parrot\n","Habitat: Jungle/Rainforest\n","Eats: Plants/Insects\n","2 Legs\n","Wingspan: 4ft\n","Parrots are exotic birds that are\ntypically found in rainforest environments.\nThey feed on plants and insects.\n","");
...
...
@@ -263,7 +263,7 @@ public class Test {
}
publicstaticvoidforestry(){
ArrayList<Animal>Forestry=newArrayList<Animal>();
ArrayList<Animal>Forestry=newArrayList<Animal>();//arraylist definition for forest animals
MammalDeer=newMammal("Name: Deer\n","Habitat: Forestry, ","Eats: Plants\n","4 Legs\n","Deer are worldwide animals that live in forest environments.\nThey are herbivores and thus feed on vegetation.\n","","");
MammalRaccoon=newMammal("Name: Raccoon\n","Habitat: Forestry\n","Eats: Plants/Insects/Rodents\n","4 Legs\n","Raccoons live in forestry in several climates.\nThey feed on plants, insects and small rodents such as mice and shrews.\n","","");
...
...
@@ -281,7 +281,7 @@ public class Test {
}
publicstaticvoidallenviro(){
ArrayList<Animal>AllHabs=newArrayList<Animal>();
ArrayList<Animal>AllHabs=newArrayList<Animal>();//arraylist definition for animals from all environments
ReptileLizard=newReptile("Name: Common Lizard\n","Habitat: All Habitats\n","Eats: Insects\n","4 Legs\n","The common lizard can be found in many environments worldwide.\nThey feed on small insects from all environments.\n","","");
Fishcrab=newFish("Name: Crab\n","Habitat: All Environments\n","Eats: Carcasses/Plants\n","10 Legs\n","Length: Between 10cm - 2m\n","Crabs are all-environment crustaceans that scavenge\nfor fish carcasses and plants in their environment\n","");
ArrayList<Animal>Carnivores=newArrayList<Animal>();//arraylist definition for carnivores
FishSnailfish=newFish("Name: Snailfish\n","Habitat: Cold Water\n","Eats: Crustaceans\n","Length: 30cm\n","Snailfish are cold water fish that are often found in\ncolder climates. they feed on crustaceans.\n","","");
FishEel=newFish("Name: Eel\n","Habitat: All Environments, Bottom Dwellers\n","Eats: Small fish\n","Length: 70cm\n","Eels are bottom dweller fish found in all environments.\nThey feed on small fish and plants\n","","");
FishBullshark=newFish("Name: Bull Shark\n","Habitat: Warm, shallow water\n","Eats: All sealife\n","Length: 11 feet\n","Bull Shark are predators typically found in warm, shallow water\nand feed on all types of sealife from small to larger fish and other sharks.\n","","");
ArrayList<Animal>Herbivores=newArrayList<Animal>();//arraylist definition for herbivores
ReptileTortoise=newReptile("Name: Tortoise\n","Habitat: Deserts\n","Eats: Plants/Vegetation\n","4 Legs\n","Tortoises are large, shelled reptiles that live a long time.\nThey feed on desert plants and vegatation.\n","","");
ReptileBDragon=newReptile("Name: Bearded Dragon\n","Habitat: Deserts\n","Eats: Plants/Insects\n","4 Legs\n","Bearded Dragons are medium sized, lizard type reptiles.\nThey feed on plants and insects in the desert environment.\n","","");
ArrayList<Animal>Otherdiets=newArrayList<Animal>();//arraylist definition for animals with varied diets
ReptileLizard=newReptile("Name: Common Lizard\n","Habitat: All Habitats\n","Eats: Insects\n","4 Legs\n","The common lizard can be found in many environments worldwide.\nThey feed on small insects from all environments.\n","","");
ReptileChameleon=newReptile("Name: Chameleon\n","Habitat: Rainforests\n","Eats: Insects\n","4 Legs\n","Chameleons are known for their camouflage ability and are\nfound in rainforests. They feed on exotic bugs.\n","","");
...
...
@@ -387,11 +387,11 @@ public class Test {
}
}
publicstaticvoidmain(String[]args){
Scannerin=newScanner(System.in);
publicstaticvoidmain(String[]args){// main method
Scannerin=newScanner(System.in);// scanner 'in' to search for user input
// formatting the manu shown to the user
System.out.print("Welcome to YSJ Zoo! Please select an option to get started.\n\n");
System.out.println("1\t Show all of our animals");
System.out.println("2\t Choose a random animal and show their details");
...
...
@@ -410,11 +410,11 @@ public static void main (String[] args) {
System.out.println("Please enter your choice:");
// takes user choice as an integer and stores it in 'choice'
intchoice=in.nextInt();
switch(choice){
switch(choice){// switch to facilitate a selection from the menu for any of the 14 options
case1:
...
...
@@ -500,12 +500,12 @@ case 14:
break;
default:
default:// default return case in case of invalid entry
System.out.print("Invalid selection, please reload and try again");
MammalPBear=newMammal("Name: Polar Bear\n","Habitat: Arctic\n","Eats: Seals\n","4 Legs\n","Polar Bears are large white bears that live in the Arctic.\nThey are carnivores and often search in the water for seals to hunt.\n"," ","");
MammalSeal=newMammal("Name: Seal\n","Habitat: Arctic\n","Eats: Fish\n","2 Legs\n","Seals are large aquatic mammals that live in the arctic and antarctic\nThey live in the sea primarily and often hunt schools of fish.\n","","");
MammalCamel=newMammal("Name: Camel\n","Habitat: Desert\n","Eats: Plants\n","4 Legs\n","Camels are desert mammals that exist in worldwide deserts.\nThey eat dry vegetation and plants in the environment.\n","","");
MammalCoyote=newMammal("Name: Coyote\n","Habitat: Desert\n","Eats: Animals/Fruit\n","4 Legs\n","Coyotes are desert and plain animals that are typically feral.\nThey feed on other animals and fruit.\n","","");
MammalJaguar=newMammal("Name: Jaguar\n","Habitat: Jungle/Rainforest\n","Eats: Deer/Capybara\n","4 Legs\n","Jaguars are big cat predators that live in\njungle and rainforest environments.\n They feed on deer and capybara local to the environent.\n","","");
MammalCapybara=newMammal("Name: Capybara\n","Habitat: Swamp/Grass\n","Eats: Grass\n","4 Legs\n","Capybara are medium sized mammals that live in swampy and grassy areas.\nThey feed on grass primarily.\n","","");
MammalDeer=newMammal("Name: Deer\n","Habitat: Forestry, ","Eats: Plants\n","4 Legs\n","Deer are worldwide animals that live in forest environments.\nThey are herbivores and thus feed on vegetation.\n","","");
MammalRaccoon=newMammal("Name: Raccoon\n","Habitat: Forestry\n","Eats: Plants/Insects/Rodents\n","4 Legs\n","Raccoons live in forestry in several climates.\nThey feed on plants, insects and small rodents such as mice and shrews.\n","","");
BirdPenguin=newBird("Name: Penguin\n","Habitat: Antarctic\n","Eats: Sealife\n","2 Legs\n","Wingspan: 30in\n","Penguins are large Antarctic birds that come in many forms.\nThey feed on fish in their envornment.\n","");
BirdSnowOwl=newBird("Name: Snow Owl\n","Habitat: Arctic\n","Eats: Lemmings/Small Animals\n","2 Legs\n","Wingspan: 165cm\n","Snow Owls are small owls that live in the arctic\nThey feed on lemmings and small rodents.\n","");
BirdVulture=newBird("Name: Vulture\n","Habitat: Desert\n","Eats: Carcasses\n","2 Legs\n","Wingspan: 2.2m\n","Vultures are large desert scavengers that feed\non dead animals due to their inability to hunt.\n","");
BirdFalcon=newBird("Name: Falcon\n","Habitat: Desert\n","Eats: Small Birds/Fish\n","2 Legs\n","Wingspan: 120cm\n","Falcons are large birds of prey that come in many forms.\nThey feed on small birds and fish and can be found\nin many environments.\n","");
BirdParrot=newBird("Name: Parrot\n","Habitat: Jungle/Rainforest\n","Eats: Plants/Insects\n","2 Legs\n","Wingspan: 4ft\n","Parrots are exotic birds that are\ntypically found in rainforest environments.\nThey feed on plants and insects.\n","");
BirdToucan=newBird("Name: Toucan\n","Habitat: Jungle/Rainforest\n","Eats: Plants/Insects/Rodents\n","2 Legs\n","Wingspan: 52in\n","Toucans are exotic birds that live in the rainforest.\nThey are similar to parrots in diet and environment.\n","");
BirdOwl=newBird("Name: Owl\n","Habitat: Forestry\n","Eats: Insects\n","2 Legs\n","Wingspan: 35in\n","Owls are worldwide birds that have many sub-classifications.\nThey eat insects and are predators for this reason.\n","");
BirdWoodpecker=newBird("Name: Woodpecker\n","Habitat: Forestry\n","Eats: Grubs/Insects\n","2 Legs\n","Wingspan: 28in\n","Woodpeckers are worldwide birds that are known for their insect hunting method\nof pecking trees to attract insects\n","");
Fishcrab=newFish("Name: Crab\n","Habitat: All Environments\n","Eats: Carcasses/Plants\n","10 Legs\n","Length: Between 10cm - 2m\n","Crabs are all-environment crustaceans that scavenge\nfor fish carcasses and plants in their environment\n","");
FishSnailfish=newFish("Name: Snailfish\n","Habitat: Cold Water\n","Eats: Crustaceans\n","Length: 30cm\n","Snailfish are cold water fish that are often found in\ncolder climates. they feed on crustaceans.\n","","");
FishEel=newFish("Name: Eel\n","Habitat: All Environments, Bottom Dwellers\n","Eats: Small fish\n","Length: 70cm\n","Eels are bottom dweller fish found in all environments.\nThey feed on small fish and plants\n","","");
FishBullshark=newFish("Name: Bull Shark\n","Habitat: Warm, shallow water\n","Eats: All sealife\n","Length: 11 feet\n","Bull Shark are predators typically found in warm, shallow water\nand feed on all types of sealife from small to larger fish and other sharks.\n","","");
FishSalmon=newFish("Name: Salmon\n","Habitat: Clear rivers\n","Eats: Invertebrates/Small fish\n","Length: Up to 30in\n","Salmon are common fish found in clearwater rivers.\nThey feed on invertebrates and small fish also found in their habitat\n","","");
Fishcarp=newFish("Name: Carp\n","Habitat: Lakes, Rivers\n","Eats: Dead fish/Crustaceans\n","Length: 60cm\n","Carp are common fish that are found in lakes andrivers.\nThey feed mainly on dead fish and crustaceans.\n","","");
ReptileTortoise=newReptile("Name: Tortoise\n","Habitat: Deserts\n","Eats: Plants/Vegetation\n","4 Legs\n","Tortoises are large, shelled reptiles that live a long time.\nThey feed on desert plants and vegatation.\n","","");
ReptileBDragon=newReptile("Name: Bearded Dragon\n","Habitat: Deserts\n","Eats: Plants/Insects\n","4 Legs\n","Bearded Dragons are medium sized, lizard type reptiles.\nThey feed on plants and insects in the desert environment.\n","","");
ReptileCrocodile=newReptile("Name: Crocodile\n","Habitat: Jungle/Swamps\n","Eats: Small Animals\n","4 Legs\n","Crocodiles, related to alligators are jungle/swamp\ndwellers that feed on small to medium mammals.\n","","");
ReptilePython=newReptile("Name: Python\n","Habitat: Jungle/Swamps\n","Eats: Small/Medium Mammals\n","0 Legs\n","Pythoins are a type of snake found in the jungle/swamp environments.\nThey feed on small to medium mammals local to their habitat.\n","","");
ReptileLizard=newReptile("Name: Common Lizard\n","Habitat: All Habitats\n","Eats: Insects\n","4 Legs\n","The common lizard can be found in many environments worldwide.\nThey feed on small insects from all environments.\n","","");
ReptileChameleon=newReptile("Name: Chameleon\n","Habitat: Rainforests\n","Eats: Insects\n","4 Legs\n","Chameleons are known for their camouflage ability and are\nfound in rainforests. They feed on exotic bugs.\n","","");
MammalPBear=newMammal("Name: Polar Bear\n","Habitat: Arctic\n","Eats: Seals\n","4 Legs\n","Polar Bears are large white bears that live in the Arctic.\nThey are carnivores and often search in the water for seals to hunt.\n"," ","");
MammalSeal=newMammal("Name: Seal\n","Habitat: Arctic\n","Eats: Fish\n","2 Legs\n","Seals are large aquatic mammals that live in the arctic and antarctic\nThey live in the sea primarily and often hunt schools of fish.\n","","");
MammalCamel=newMammal("Name: Camel\n","Habitat: Desert\n","Eats: Plants\n","4 Legs\n","Camels are desert mammals that exist in worldwide deserts.\nThey eat dry vegetation and plants in the environment.\n","","");
MammalCoyote=newMammal("Name: Coyote\n","Habitat: Desert\n","Eats: Animals/Fruit\n","4 Legs\n","Coyotes are desert and plain animals that are typically feral.\nThey feed on other animals and fruit.\n","","");
MammalJaguar=newMammal("Name: Jaguar\n","Habitat: Jungle/Rainforest\n","Eats: Deer/Capybara\n","4 Legs\n","Jaguars are big cat predators that live in\njungle and rainforest environments.\n They feed on deer and capybara local to the environent.\n","","");
MammalCapybara=newMammal("Name: Capybara\n","Habitat: Swamp/Grass\n","Eats: Grass\n","4 Legs\n","Capybara are medium sized mammals that live in swampy and grassy areas.\nThey feed on grass primarily.\n","","");
MammalDeer=newMammal("Name: Deer\n","Habitat: Forestry, ","Eats: Plants\n","4 Legs\n","Deer are worldwide animals that live in forest environments.\nThey are herbivores and thus feed on vegetation.\n","","");
MammalRaccoon=newMammal("Name: Raccoon\n","Habitat: Forestry\n","Eats: Plants/Insects/Rodents\n","4 Legs\n","Raccoons live in forestry in several climates.\nThey feed on plants, insects and small rodents such as mice and shrews.\n","","");
BirdPenguin=newBird("Name: Penguin\n","Habitat: Antarctic\n","Eats: Sealife\n","2 Legs\n","Wingspan: 30in\n","Penguins are large Antarctic birds that come in many forms.\nThey feed on fish in their envornment.\n","");
BirdSnowOwl=newBird("Name: Snow Owl\n","Habitat: Arctic\n","Eats: Lemmings/Small Animals\n","2 Legs\n","Wingspan: 165cm\n","Snow Owls are small owls that live in the arctic\nThey feed on lemmings and small rodents.\n","");
BirdVulture=newBird("Name: Vulture\n","Habitat: Desert\n","Eats: Carcasses\n","2 Legs\n","Wingspan: 2.2m\n","Vultures are large desert scavengers that feed\non dead animals due to their inability to hunt.\n","");
BirdFalcon=newBird("Name: Falcon\n","Habitat: Desert\n","Eats: Small Birds/Fish\n","2 Legs\n","Wingspan: 120cm\n","Falcons are large birds of prey that come in many forms.\nThey feed on small birds and fish and can be found\nin many environments.\n","");
BirdParrot=newBird("Name: Parrot\n","Habitat: Jungle/Rainforest\n","Eats: Plants/Insects\n","2 Legs\n","Wingspan: 4ft\n","Parrots are exotic birds that are\ntypically found in rainforest environments.\nThey feed on plants and insects.\n","");
BirdToucan=newBird("Name: Toucan\n","Habitat: Jungle/Rainforest\n","Eats: Plants/Insects/Rodents\n","2 Legs\n","Wingspan: 52in\n","Toucans are exotic birds that live in the rainforest.\nThey are similar to parrots in diet and environment.\n","");
BirdOwl=newBird("Name: Owl\n","Habitat: Forestry\n","Eats: Insects\n","2 Legs\n","Wingspan: 35in\n","Owls are worldwide birds that have many sub-classifications.\nThey eat insects and are predators for this reason.\n","");
BirdWoodpecker=newBird("Name: Woodpecker\n","Habitat: Forestry\n","Eats: Grubs/Insects\n","2 Legs\n","Wingspan: 28in\n","Woodpeckers are worldwide birds that are known for their insect hunting method\nof pecking trees to attract insects\n","");
Fishcrab=newFish("Name: Crab\n","Habitat: All Environments\n","Eats: Carcasses/Plants\n","10 Legs\n","Length: Between 10cm - 2m\n","Crabs are all-environment crustaceans that scavenge\nfor fish carcasses and plants in their environment\n","");
FishSnailfish=newFish("Name: Snailfish\n","Habitat: Cold Water\n","Eats: Crustaceans\n","Length: 30cm\n","Snailfish are cold water fish that are often found in\ncolder climates. they feed on crustaceans.\n","","");
FishEel=newFish("Name: Eel\n","Habitat: All Environments, Bottom Dwellers\n","Eats: Small fish\n","Length: 70cm\n","Eels are bottom dweller fish found in all environments.\nThey feed on small fish and plants\n","","");
FishBullshark=newFish("Name: Bull Shark\n","Habitat: Warm, shallow water\n","Eats: All sealife\n","Length: 11 feet\n","Bull Shark are predators typically found in warm, shallow water\nand feed on all types of sealife from small to larger fish and other sharks.\n","","");
FishSalmon=newFish("Name: Salmon\n","Habitat: Clear rivers\n","Eats: Invertebrates/Small fish\n","Length: Up to 30in\n","Salmon are common fish found in clearwater rivers.\nThey feed on invertebrates and small fish also found in their habitat\n","","");
Fishcarp=newFish("Name: Carp\n","Habitat: Lakes, Rivers\n","Eats: Dead fish/Crustaceans\n","Length: 60cm\n","Carp are common fish that are found in lakes andrivers.\nThey feed mainly on dead fish and crustaceans.\n","","");
ReptileTortoise=newReptile("Name: Tortoise\n","Habitat: Deserts\n","Eats: Plants/Vegetation\n","4 Legs\n","Tortoises are large, shelled reptiles that live a long time.\nThey feed on desert plants and vegatation.\n","","");
ReptileBDragon=newReptile("Name: Bearded Dragon\n","Habitat: Deserts\n","Eats: Plants/Insects\n","4 Legs\n","Bearded Dragons are medium sized, lizard type reptiles.\nThey feed on plants and insects in the desert environment.\n","","");
ReptileCrocodile=newReptile("Name: Crocodile\n","Habitat: Jungle/Swamps\n","Eats: Small Animals\n","4 Legs\n","Crocodiles, related to alligators are jungle/swamp\ndwellers that feed on small to medium mammals.\n","","");
ReptilePython=newReptile("Name: Python\n","Habitat: Jungle/Swamps\n","Eats: Small/Medium Mammals\n","0 Legs\n","Pythoins are a type of snake found in the jungle/swamp environments.\nThey feed on small to medium mammals local to their habitat.\n","","");
ReptileLizard=newReptile("Name: Common Lizard\n","Habitat: All Habitats\n","Eats: Insects\n","4 Legs\n","The common lizard can be found in many environments worldwide.\nThey feed on small insects from all environments.\n","","");
ReptileChameleon=newReptile("Name: Chameleon\n","Habitat: Rainforests\n","Eats: Insects\n","4 Legs\n","Chameleons are known for their camouflage ability and are\nfound in rainforests. They feed on exotic bugs.\n","","");
MammalPBear=newMammal("Name: Polar Bear\n","Habitat: Arctic\n","Eats: Seals\n","4 Legs\n","Polar Bears are large white bears that live in the Arctic.\nThey are carnivores and often search in the water for seals to hunt.\n"," ","");
MammalSeal=newMammal("Name: Seal\n","Habitat: Arctic\n","Eats: Fish\n","2 Legs\n","Seals are large aquatic mammals that live in the arctic and antarctic\nThey live in the sea primarily and often hunt schools of fish.\n","","");
MammalCamel=newMammal("Name: Camel\n","Habitat: Desert\n","Eats: Plants\n","4 Legs\n","Camels are desert mammals that exist in worldwide deserts.\nThey eat dry vegetation and plants in the environment.\n","","");
MammalCoyote=newMammal("Name: Coyote\n","Habitat: Desert\n","Eats: Animals/Fruit\n","4 Legs\n","Coyotes are desert and plain animals that are typically feral.\nThey feed on other animals and fruit.\n","","");
MammalJaguar=newMammal("Name: Jaguar\n","Habitat: Jungle/Rainforest\n","Eats: Deer/Capybara\n","4 Legs\n","Jaguars are big cat predators that live in\njungle and rainforest environments.\n They feed on deer and capybara local to the environent.\n","","");
MammalCapybara=newMammal("Name: Capybara\n","Habitat: Swamp/Grass\n","Eats: Grass\n","4 Legs\n","Capybara are medium sized mammals that live in swampy and grassy areas.\nThey feed on grass primarily.\n","","");
MammalDeer=newMammal("Name: Deer\n","Habitat: Forestry, ","Eats: Plants\n","4 Legs\n","Deer are worldwide animals that live in forest environments.\nThey are herbivores and thus feed on vegetation.\n","","");
MammalRaccoon=newMammal("Name: Raccoon\n","Habitat: Forestry\n","Eats: Plants/Insects/Rodents\n","4 Legs\n","Raccoons live in forestry in several climates.\nThey feed on plants, insects and small rodents such as mice and shrews.\n","","");
Mammals.add(PBear);
Mammals.add(Seal);
Mammals.add(Camel);
Mammals.add(Coyote);
Mammals.add(Jaguar);
Mammals.add(Capybara);
Mammals.add(Deer);
Mammals.add(Raccoon);
for(inti=0;i<Mammals.size();i++){
System.out.println(Mammals.get(i));
}
}
publicstaticvoidbirds(){
ArrayList<Animal>Bird=newArrayList<Animal>();
BirdPenguin=newBird("Name: Penguin\n","Habitat: Antarctic\n","Eats: Sealife\n","2 Legs\n","Wingspan: 30in\n","Penguins are large Antarctic birds that come in many forms.\nThey feed on fish in their envornment.\n","");
BirdSnowOwl=newBird("Name: Snow Owl\n","Habitat: Arctic\n","Eats: Lemmings/Small Animals\n","2 Legs\n","Wingspan: 165cm\n","Snow Owls are small owls that live in the arctic\nThey feed on lemmings and small rodents.\n","");
BirdVulture=newBird("Name: Vulture\n","Habitat: Desert\n","Eats: Carcasses\n","2 Legs\n","Wingspan: 2.2m\n","Vultures are large desert scavengers that feed\non dead animals due to their inability to hunt.\n","");
BirdFalcon=newBird("Name: Falcon\n","Habitat: Desert\n","Eats: Small Birds/Fish\n","2 Legs\n","Wingspan: 120cm\n","Falcons are large birds of prey that come in many forms.\nThey feed on small birds and fish and can be found\nin many environments.\n","");
BirdParrot=newBird("Name: Parrot\n","Habitat: Jungle/Rainforest\n","Eats: Plants/Insects\n","2 Legs\n","Wingspan: 4ft\n","Parrots are exotic birds that are\ntypically found in rainforest environments.\nThey feed on plants and insects.\n","");
BirdToucan=newBird("Name: Toucan\n","Habitat: Jungle/Rainforest\n","Eats: Plants/Insects/Rodents\n","2 Legs\n","Wingspan: 52in\n","Toucans are exotic birds that live in the rainforest.\nThey are similar to parrots in diet and environment.\n","");
BirdOwl=newBird("Name: Owl\n","Habitat: Forestry\n","Eats: Insects\n","2 Legs\n","Wingspan: 35in\n","Owls are worldwide birds that have many sub-classifications.\nThey eat insects and are predators for this reason.\n","");
BirdWoodpecker=newBird("Name: Woodpecker\n","Habitat: Forestry\n","Eats: Grubs/Insects\n","2 Legs\n","Wingspan: 28in\n","Woodpeckers are worldwide birds that are known for their insect hunting method\nof pecking trees to attract insects\n","");
Bird.add(Penguin);
Bird.add(SnowOwl);
Bird.add(Vulture);
Bird.add(Falcon);
Bird.add(Parrot);
Bird.add(Toucan);
Bird.add(Owl);
Bird.add(Woodpecker);
for(inti=0;i<Bird.size();i++){
System.out.println(Bird.get(i));
}
}
publicstaticvoidfish(){
ArrayList<Animal>Fishes=newArrayList<Animal>();
Fishcrab=newFish("Name: Crab\n","Habitat: All Environments\n","Eats: Carcasses/Plants\n","10 Legs\n","Length: Between 10cm - 2m\n","Crabs are all-environment crustaceans that scavenge\nfor fish carcasses and plants in their environment\n","");
FishSnailfish=newFish("Name: Snailfish\n","Habitat: Cold Water\n","Eats: Crustaceans\n","Length: 30cm\n","Snailfish are cold water fish that are often found in\ncolder climates. they feed on crustaceans.\n","","");
FishEel=newFish("Name: Eel\n","Habitat: All Environments, Bottom Dwellers\n","Eats: Small fish\n","Length: 70cm\n","Eels are bottom dweller fish found in all environments.\nThey feed on small fish and plants\n","","");
FishBullshark=newFish("Name: Bull Shark\n","Habitat: Warm, shallow water\n","Eats: All sealife\n","Length: 11 feet\n","Bull Shark are predators typically found in warm, shallow water\nand feed on all types of sealife from small to larger fish and other sharks.\n","","");
FishSalmon=newFish("Name: Salmon\n","Habitat: Clear rivers\n","Eats: Invertebrates/Small fish\n","Length: Up to 30in\n","Salmon are common fish found in clearwater rivers.\nThey feed on invertebrates and small fish also found in their habitat\n","","");
Fishcarp=newFish("Name: Carp\n","Habitat: Lakes, Rivers\n","Eats: Dead fish/Crustaceans\n","Length: 60cm\n","Carp are common fish that are found in lakes andrivers.\nThey feed mainly on dead fish and crustaceans.\n","","");
Fishes.add(crab);
Fishes.add(Snailfish);
Fishes.add(Eel);
Fishes.add(Bullshark);
Fishes.add(Salmon);
Fishes.add(carp);
for(inti=0;i<Fishes.size();i++){
System.out.println(Fishes.get(i));
}
}
publicstaticvoidreptiles(){
ArrayList<Animal>Reptiles=newArrayList<Animal>();
ReptileTortoise=newReptile("Name: Tortoise\n","Habitat: Deserts\n","Eats: Plants/Vegetation\n","4 Legs\n","Tortoises are large, shelled reptiles that live a long time.\nThey feed on desert plants and vegatation.\n","","");
ReptileBDragon=newReptile("Name: Bearded Dragon\n","Habitat: Deserts\n","Eats: Plants/Insects\n","4 Legs\n","Bearded Dragons are medium sized, lizard type reptiles.\nThey feed on plants and insects in the desert environment.\n","","");
ReptileCrocodile=newReptile("Name: Crocodile\n","Habitat: Jungle/Swamps\n","Eats: Small Animals\n","4 Legs\n","Crocodiles, related to alligators are jungle/swamp\ndwellers that feed on small to medium mammals.\n","","");
ReptilePython=newReptile("Name: Python\n","Habitat: Jungle/Swamps\n","Eats: Small/Medium Mammals\n","0 Legs\n","Pythoins are a type of snake found in the jungle/swamp environments.\nThey feed on small to medium mammals local to their habitat.\n","","");
ReptileLizard=newReptile("Name: Common Lizard\n","Habitat: All Habitats\n","Eats: Insects\n","4 Legs\n","The common lizard can be found in many environments worldwide.\nThey feed on small insects from all environments.\n","","");
ReptileChameleon=newReptile("Name: Chameleon\n","Habitat: Rainforests\n","Eats: Insects\n","4 Legs\n","Chameleons are known for their camouflage ability and are\nfound in rainforests. They feed on exotic bugs.\n","","");
Reptiles.add(Tortoise);
Reptiles.add(BDragon);
Reptiles.add(Crocodile);
Reptiles.add(Python);
Reptiles.add(Lizard);
Reptiles.add(Chameleon);
for(inti=0;i<Reptiles.size();i++){
System.out.println(Reptiles.get(i));
}
}
publicstaticvoiddesert(){
ArrayList<Animal>Desert=newArrayList<Animal>();
MammalCamel=newMammal("Name: Camel\n","Habitat: Desert\n","Eats: Plants\n","4 Legs\n","Camels are desert mammals that exist in worldwide deserts.\nThey eat dry vegetation and plants in the environment.\n","","");
MammalCoyote=newMammal("Name: Coyote\n","Habitat: Desert\n","Eats: Animals/Fruit\n","4 Legs\n","Coyotes are desert and plain animals that are typically feral.\nThey feed on other animals and fruit.\n","","");
BirdVulture=newBird("Name: Vulture\n","Habitat: Desert\n","Eats: Carcasses\n","2 Legs\n","Wingspan: 2.2m\n","Vultures are large desert scavengers that feed\non dead animals due to their inability to hunt.\n","");
BirdFalcon=newBird("Name: Falcon\n","Habitat: Desert\n","Eats: Small Birds/Fish\n","2 Legs\n","Wingspan: 120cm\n","Falcons are large birds of prey that come in many forms.\nThey feed on small birds and fish and can be found\nin many environments.\n","");
ReptileTortoise=newReptile("Name: Tortoise\n","Habitat: Deserts\n","Eats: Plants/Vegetation\n","4 Legs\n","Tortoises are large, shelled reptiles that live a long time.\nThey feed on desert plants and vegatation.\n","","");
ReptileBDragon=newReptile("Name: Bearded Dragon\n","Habitat: Deserts\n","Eats: Plants/Insects\n","4 Legs\n","Bearded Dragons are medium sized, lizard type reptiles.\nThey feed on plants and insects in the desert environment.\n","","");
Desert.add(Camel);
Desert.add(Coyote);
Desert.add(Vulture);
Desert.add(Falcon);
Desert.add(Tortoise);
Desert.add(BDragon);
for(inti=0;i<Desert.size();i++){
System.out.println(Desert.get(i));
}
}
publicstaticvoidarctic(){
ArrayList<Animal>Arctic=newArrayList<Animal>();
MammalPBear=newMammal("Name: Polar Bear\n","Habitat: Arctic\n","Eats: Seals\n","4 Legs\n","Polar Bears are large white bears that live in the Arctic.\nThey are carnivores and often search in the water for seals to hunt.\n"," ","");
MammalSeal=newMammal("Name: Seal\n","Habitat: Arctic\n","Eats: Fish\n","2 Legs\n","Seals are large aquatic mammals that live in the arctic and antarctic\nThey live in the sea primarily and often hunt schools of fish.\n","","");
FishSnailfish=newFish("Name: Snailfish\n","Habitat: Cold Water\n","Eats: Crustaceans\n","Length: 30cm\n","Snailfish are cold water fish that are often found in\ncolder climates. they feed on crustaceans.\n","","");
BirdPenguin=newBird("Name: Penguin\n","Habitat: Antarctic\n","Eats: Sealife\n","2 Legs\n","Wingspan: 30in\n","Penguins are large Antarctic birds that come in many forms.\nThey feed on fish in their envornment.\n","");
BirdSnowOwl=newBird("Name: Snow Owl\n","Habitat: Arctic\n","Eats: Lemmings/Small Animals\n","2 Legs\n","Wingspan: 165cm\n","Snow Owls are small owls that live in the arctic\nThey feed on lemmings and small rodents.\n","");
Arctic.add(PBear);
Arctic.add(Seal);
Arctic.add(Snailfish);
Arctic.add(Penguin);
Arctic.add(SnowOwl);
for(inti=0;i<Arctic.size();i++){
System.out.println(Arctic.get(i));
}
}
publicstaticvoidjungle(){
ArrayList<Animal>Jungle=newArrayList<Animal>();
MammalJaguar=newMammal("Name: Jaguar\n","Habitat: Jungle/Rainforest\n","Eats: Deer/Capybara\n","4 Legs\n","Jaguars are big cat predators that live in\njungle and rainforest environments.\n They feed on deer and capybara local to the environent.\n","","");
MammalCapybara=newMammal("Name: Capybara\n","Habitat: Swamp/Grass\n","Eats: Grass\n","4 Legs\n","Capybara are medium sized mammals that live in swampy and grassy areas.\nThey feed on grass primarily.\n","","");
BirdParrot=newBird("Name: Parrot\n","Habitat: Jungle/Rainforest\n","Eats: Plants/Insects\n","2 Legs\n","Wingspan: 4ft\n","Parrots are exotic birds that are\ntypically found in rainforest environments.\nThey feed on plants and insects.\n","");
BirdToucan=newBird("Name: Toucan\n","Habitat: Jungle/Rainforest\n","Eats: Plants/Insects/Rodents\n","2 Legs\n","Wingspan: 52in\n","Toucans are exotic birds that live in the rainforest.\nThey are similar to parrots in diet and environment.\n","");
ReptilePython=newReptile("Name: Python\n","Habitat: Jungle/Swamps\n","Eats: Small/Medium Mammals\n","0 Legs\n","Pythoins are a type of snake found in the jungle/swamp environments.\nThey feed on small to medium mammals local to their habitat.\n","","");
ReptileChameleon=newReptile("Name: Chameleon\n","Habitat: Rainforests\n","Eats: Insects\n","4 Legs\n","Chameleons are known for their camouflage ability and are\nfound in rainforests. They feed on exotic bugs.\n","","");
Jungle.add(Jaguar);
Jungle.add(Capybara);
Jungle.add(Parrot);
Jungle.add(Toucan);
Jungle.add(Python);
Jungle.add(Chameleon);
for(inti=0;i<Jungle.size();i++){
System.out.println(Jungle.get(i));
}
}
publicstaticvoidforestry(){
ArrayList<Animal>Forestry=newArrayList<Animal>();
MammalDeer=newMammal("Name: Deer\n","Habitat: Forestry, ","Eats: Plants\n","4 Legs\n","Deer are worldwide animals that live in forest environments.\nThey are herbivores and thus feed on vegetation.\n","","");
MammalRaccoon=newMammal("Name: Raccoon\n","Habitat: Forestry\n","Eats: Plants/Insects/Rodents\n","4 Legs\n","Raccoons live in forestry in several climates.\nThey feed on plants, insects and small rodents such as mice and shrews.\n","","");
BirdOwl=newBird("Name: Owl\n","Habitat: Forestry\n","Eats: Insects\n","2 Legs\n","Wingspan: 35in\n","Owls are worldwide birds that have many sub-classifications.\nThey eat insects and are predators for this reason.\n","");
BirdWoodpecker=newBird("Name: Woodpecker\n","Habitat: Forestry\n","Eats: Grubs/Insects\n","2 Legs\n","Wingspan: 28in\n","Woodpeckers are worldwide birds that are known for their insect hunting method\nof pecking trees to attract insects\n","");
Forestry.add(Deer);
Forestry.add(Raccoon);
Forestry.add(Owl);
Forestry.add(Woodpecker);
for(inti=0;i<Forestry.size();i++){
System.out.println(Forestry.get(i));
}
}
publicstaticvoidallenviro(){
ArrayList<Animal>AllHabs=newArrayList<Animal>();
ReptileLizard=newReptile("Name: Common Lizard\n","Habitat: All Habitats\n","Eats: Insects\n","4 Legs\n","The common lizard can be found in many environments worldwide.\nThey feed on small insects from all environments.\n","","");
Fishcrab=newFish("Name: Crab\n","Habitat: All Environments\n","Eats: Carcasses/Plants\n","10 Legs\n","Length: Between 10cm - 2m\n","Crabs are all-environment crustaceans that scavenge\nfor fish carcasses and plants in their environment\n","");
FishEel=newFish("Name: Eel\n","Habitat: All Environments, Bottom Dwellers\n","Eats: Small fish\n","Length: 70cm\n","Eels are bottom dweller fish found in all environments.\nThey feed on small fish and plants\n","","");
FishBullshark=newFish("Name: Bull Shark\n","Habitat: Warm, shallow water\n","Eats: All sealife\n","Length: 11 feet\n","Bull Shark are predators typically found in warm, shallow water\nand feed on all types of sealife from small to larger fish and other sharks.\n","","");
FishSalmon=newFish("Name: Salmon\n","Habitat: Clear rivers\n","Eats: Invertebrates/Small fish\n","Length: Up to 30in\n","Salmon are common fish found in clearwater rivers.\nThey feed on invertebrates and small fish also found in their habitat\n","","");
Fishcarp=newFish("Name: Carp\n","Habitat: Lakes, Rivers\n","Eats: Dead fish/Crustaceans\n","Length: 60cm\n","Carp are common fish that are found in lakes andrivers.\nThey feed mainly on dead fish and crustaceans.\n","","");
FishSnailfish=newFish("Name: Snailfish\n","Habitat: Cold Water\n","Eats: Crustaceans\n","Length: 30cm\n","Snailfish are cold water fish that are often found in\ncolder climates. they feed on crustaceans.\n","","");
FishEel=newFish("Name: Eel\n","Habitat: All Environments, Bottom Dwellers\n","Eats: Small fish\n","Length: 70cm\n","Eels are bottom dweller fish found in all environments.\nThey feed on small fish and plants\n","","");
FishBullshark=newFish("Name: Bull Shark\n","Habitat: Warm, shallow water\n","Eats: All sealife\n","Length: 11 feet\n","Bull Shark are predators typically found in warm, shallow water\nand feed on all types of sealife from small to larger fish and other sharks.\n","","");
FishSalmon=newFish("Name: Salmon\n","Habitat: Clear rivers\n","Eats: Invertebrates/Small fish\n","Length: Up to 30in\n","Salmon are common fish found in clearwater rivers.\nThey feed on invertebrates and small fish also found in their habitat\n","","");
ReptileCrocodile=newReptile("Name: Crocodile\n","Habitat: Jungle/Swamps\n","Eats: Small Animals\n","4 Legs\n","Crocodiles, related to alligators are jungle/swamp\ndwellers that feed on small to medium mammals.\n","","");
ReptilePython=newReptile("Name: Python\n","Habitat: Jungle/Swamps\n","Eats: Small/Medium Mammals\n","0 Legs\n","Pythoins are a type of snake found in the jungle/swamp environments.\nThey feed on small to medium mammals local to their habitat.\n","","");
BirdPenguin=newBird("Name: Penguin\n","Habitat: Antarctic\n","Eats: Sealife\n","2 Legs\n","Wingspan: 30in\n","Penguins are large Antarctic birds that come in many forms.\nThey feed on fish in their envornment.\n","");
BirdSnowOwl=newBird("Name: Snow Owl\n","Habitat: Arctic\n","Eats: Lemmings/Small Animals\n","2 Legs\n","Wingspan: 165cm\n","Snow Owls are small owls that live in the arctic\nThey feed on lemmings and small rodents.\n","");
BirdFalcon=newBird("Name: Falcon\n","Habitat: Desert\n","Eats: Small Birds/Fish\n","2 Legs\n","Wingspan: 120cm\n","Falcons are large birds of prey that come in many forms.\nThey feed on small birds and fish and can be found\nin many environments.\n","");
MammalPBear=newMammal("Name: Polar Bear\n","Habitat: Arctic\n","Eats: Seals\n","4 Legs\n","Polar Bears are large white bears that live in the Arctic.\nThey are carnivores and often search in the water for seals to hunt.\n"," ","");
MammalSeal=newMammal("Name: Seal\n","Habitat: Arctic\n","Eats: Fish\n","2 Legs\n","Seals are large aquatic mammals that live in the arctic and antarctic\nThey live in the sea primarily and often hunt schools of fish.\n","","");
MammalCoyote=newMammal("Name: Coyote\n","Habitat: Desert\n","Eats: Animals/Fruit\n","4 Legs\n","Coyotes are desert and plain animals that are typically feral.\nThey feed on other animals and fruit.\n","","");
MammalJaguar=newMammal("Name: Jaguar\n","Habitat: Jungle/Rainforest\n","Eats: Deer/Capybara\n","4 Legs\n","Jaguars are big cat predators that live in\njungle and rainforest environments.\n They feed on deer and capybara local to the environent.\n","","");
MammalRaccoon=newMammal("Name: Raccoon\n","Habitat: Forestry\n","Eats: Plants/Insects/Rodents\n","4 Legs\n","Raccoons live in forestry in several climates.\nThey feed on plants, insects and small rodents such as mice and shrews.\n","","");
ReptileTortoise=newReptile("Name: Tortoise\n","Habitat: Deserts\n","Eats: Plants/Vegetation\n","4 Legs\n","Tortoises are large, shelled reptiles that live a long time.\nThey feed on desert plants and vegatation.\n","","");
ReptileBDragon=newReptile("Name: Bearded Dragon\n","Habitat: Deserts\n","Eats: Plants/Insects\n","4 Legs\n","Bearded Dragons are medium sized, lizard type reptiles.\nThey feed on plants and insects in the desert environment.\n","","");
MammalCamel=newMammal("Name: Camel\n","Habitat: Desert\n","Eats: Plants\n","4 Legs\n","Camels are desert mammals that exist in worldwide deserts.\nThey eat dry vegetation and plants in the environment.\n","","");
MammalDeer=newMammal("Name: Deer\n","Habitat: Forestry, ","Eats: Plants\n","4 Legs\n","Deer are worldwide animals that live in forest environments.\nThey are herbivores and thus feed on vegetation.\n","","");
ReptileLizard=newReptile("Name: Common Lizard\n","Habitat: All Habitats\n","Eats: Insects\n","4 Legs\n","The common lizard can be found in many environments worldwide.\nThey feed on small insects from all environments.\n","","");
ReptileChameleon=newReptile("Name: Chameleon\n","Habitat: Rainforests\n","Eats: Insects\n","4 Legs\n","Chameleons are known for their camouflage ability and are\nfound in rainforests. They feed on exotic bugs.\n","","");
Fishcarp=newFish("Name: Carp\n","Habitat: Lakes, Rivers\n","Eats: Dead fish/Crustaceans\n","Length: 60cm\n","Carp are common fish that are found in lakes andrivers.\nThey feed mainly on dead fish and crustaceans.\n","","");
Fishcrab=newFish("Name: Crab\n","Habitat: All Environments\n","Eats: Carcasses/Plants\n","10 Legs\n","Length: Between 10cm - 2m\n","Crabs are all-environment crustaceans that scavenge\nfor fish carcasses and plants in their environment\n","");
BirdVulture=newBird("Name: Vulture\n","Habitat: Desert\n","Eats: Carcasses\n","2 Legs\n","Wingspan: 2.2m\n","Vultures are large desert scavengers that feed\non dead animals due to their inability to hunt.\n","");
BirdParrot=newBird("Name: Parrot\n","Habitat: Jungle/Rainforest\n","Eats: Plants/Insects\n","2 Legs\n","Wingspan: 4ft\n","Parrots are exotic birds that are\ntypically found in rainforest environments.\nThey feed on plants and insects.\n","");
BirdToucan=newBird("Name: Toucan\n","Habitat: Jungle/Rainforest\n","Eats: Plants/Insects/Rodents\n","2 Legs\n","Wingspan: 52in\n","Toucans are exotic birds that live in the rainforest.\nThey are similar to parrots in diet and environment.\n","");
BirdOwl=newBird("Name: Owl\n","Habitat: Forestry\n","Eats: Insects\n","2 Legs\n","Wingspan: 35in\n","Owls are worldwide birds that have many sub-classifications.\nThey eat insects and are predators for this reason.\n","");
BirdWoodpecker=newBird("Name: Woodpecker\n","Habitat: Forestry\n","Eats: Grubs/Insects\n","2 Legs\n","Wingspan: 28in\n","Woodpeckers are worldwide birds that are known for their insect hunting method\nof pecking trees to attract insects\n","");
MammalRaccoon=newMammal("Name: Raccoon\n","Habitat: Forestry\n","Eats: Plants/Insects/Rodents\n","4 Legs\n","Raccoons live in forestry in several climates.\nThey feed on plants, insects and small rodents such as mice and shrews.\n","","");
Otherdiets.add(Lizard);
Otherdiets.add(Chameleon);
Otherdiets.add(carp);
Otherdiets.add(crab);
Otherdiets.add(Vulture);
Otherdiets.add(Parrot);
Otherdiets.add(Toucan);
Otherdiets.add(Owl);
Otherdiets.add(Woodpecker);
Otherdiets.add(Raccoon);
for(inti=0;i<Otherdiets.size();i++){
System.out.println(Otherdiets.get(i));
}
}
publicstaticvoidmain(String[]args){
Scannerin=newScanner(System.in);
System.out.print("Welcome to YSJ Zoo! Please select an option to get started.\n\n");
System.out.println("1\t Show all of our animals");
System.out.println("2\t Choose a random animal and show their details");
System.out.println("3\t Show our Mammals");
System.out.println("4\t Show our Birds");
System.out.println("5\t Show our Fish");
System.out.println("6\t Show our Reptiles");
System.out.println("7\t Show our desert animals");
System.out.println("8\t Show our arctic/antarctic animals");
System.out.println("9\t Show our jungle/rainforest animals");
System.out.println("10\t Show our forestry/woodland animals");
System.out.println("11\t Show our animals from all environments");
System.out.println("12\t Show our carnivores");
System.out.println("13\t Show our herbivores");
System.out.println("14\t Show our animals with other diets\n");
System.out.println("Please enter your choice:");
intchoice=in.nextInt();
switch(choice){
case1:
animals();
break;
case2:
animalsrand();
break;
case3:
Mammals();
break;
case4:
birds();
break;
case5:
fish();
break;
case6:
reptiles();
break;
case7:
desert();
break;
case8:
arctic();
break;
case9:
jungle();
break;
case10:
forestry();
break;
case11:
allenviro();
break;
case12:
carnivore();
break;
case13:
herbivore();
break;
case14:
otherdiet();
break;
default:
System.out.print("Invalid selection, please reload and try again");