public static void main(String[] args) {
//Creating a newZoo.
Zoo laZoo = newZoo(“Los Angeles Zoo”, “5333 Zoo Dr, Los Angeles, CA 90027”, 133,0);
//Creating twodifferent Enclosures.
EnclosurefirstEnclosure = new Enclosure(“Savanna”);
EnclosuresecondEnclosure = new Enclosure(“River”);
//Creating ouranimals.
Zebra zeb = newZebra(“Zebby”);
Gazelle gaz = newGazelle(“Gaz”);
Crocodile croc =new Crocodile(“Gena”);
Lion leo = newLion(“Leo”);
//Trying to add croc tothe firstEnclosure, but Crocodiles can’t live in the Savannah, soit prints an error message.
firstEnclosure.addAnimal(croc);
//Adding leo tothe first enclosure.
firstEnclosure.addAnimal(leo);
//Adding croc tothe second enclosure.
secondEnclosure.addAnimal(croc);
//Trying