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

commits

parent e638dd70
// The Zoo
import java.util.ArrayList;
public class main {
public static void main(String[] args) throws Exception {
public class App {
public static void app(String[] args) {
ArrayList<animal> animals = new ArrayList<animal>();
// *****Bird types*****
......@@ -93,5 +93,10 @@ public class main {
woodFrog.dietType = new Carnivores("Smaller Invertebrates");
woodFrog.habitat = new Habitat("Tundra", 22);
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