Commit 3483040d authored by jinny.wilkin's avatar jinny.wilkin

Genus create code done

parent 9b6e04b4
...@@ -47,6 +47,61 @@ public class Zoo { ...@@ -47,6 +47,61 @@ public class Zoo {
System.out.print("How fast are they: "); System.out.print("How fast are they: ");
arr[7] = in.nextLine(); arr[7] = in.nextLine();
in.close();
}
public void createMammal(){
createAnimalClass();
Scanner in = new Scanner(System.in);
System.out.print("How tall are they: ");
arr[8] = in.nextLine();
System.out.print("Are they bipedal or quadrapedal: ");
arr[9] = in.nextLine();
in.close();
}
public void createBird(){
createAnimalClass();
Scanner in = new Scanner(System.in);
System.out.print("How wide are their wings: ");
arr[8] = in.nextLine();
System.out.print("What colour are their feathers: ");
arr[9] = in.nextLine();
in.close();
}
public void createFish(){
createAnimalClass();
Scanner in = new Scanner(System.in);
System.out.print("What colour are they: ");
arr[8] = in.nextLine();
System.out.print("How long are they: ");
arr[9] = in.nextLine();
in.close();
}
public void createReptile(){
createAnimalClass();
Scanner in = new Scanner(System.in);
System.out.print("Are they amphibious: ");
arr[8] = in.nextLine();
System.out.print("How long are they: ");
arr[9] = in.nextLine();
in.close();
} }
} }
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