Commit aa49aa4c authored by elijah vasquez's avatar elijah vasquez 🦍

commits

parent e638dd70
// The Zoo // The Zoo
import java.util.ArrayList; import java.util.ArrayList;
public class main { public class App {
public static void main(String[] args) throws Exception { public static void app(String[] args) {
ArrayList<animal> animals = new ArrayList<animal>(); ArrayList<animal> animals = new ArrayList<animal>();
// *****Bird types***** // *****Bird types*****
...@@ -93,5 +93,10 @@ public class main { ...@@ -93,5 +93,10 @@ public class main {
woodFrog.dietType = new Carnivores("Smaller Invertebrates"); woodFrog.dietType = new Carnivores("Smaller Invertebrates");
woodFrog.habitat = new Habitat("Tundra", 22); woodFrog.habitat = new Habitat("Tundra", 22);
animals.add(woodFrog); animals.add(woodFrog);
System.out.println("Animal Types: ");
for (int i = 0; i < animals.size(); i++) {
System.out.println(animals.get(i));
}
} }
} }
\ No newline at end of file
No preview for this file type
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