zoo_app/app/src/main/java/com/example/jhalloran/zoo/ui/create/CreateAnimalActivity.java
private void saveAnimal() {
    switch (animalTypeSelected) {
      case "Land animal":
        createLandAnimal();
        break;
      case "Flying animal":
        createFlyingAnimal();
        break;
      case "Swimming animal":
        createSwimmingAnimal();
        break;
    }
    // Return to ZooManagerActivity
    startActivity(manageZooIntent);
  }
// Create Animal of selected type and save to model
Create Animal of selected type and save to model
Create Animal of selected type and save to model
private void saveAnimal() {
    switch (animalTypeSelected) {
      case "Land animal":
        createLandAnimal();
        break;
      case "Flying animal":
        createFlyingAnimal();
        break;
      case "Swimming animal":
        createSwimmingAnimal();
        break;
    }
    startActivity(manageZooIntent);
  }
private void saveAnimal ( ) { switch ( animalTypeSelected ) { case "Land animal" : createLandAnimal ( ) ; break ; case "Flying animal" : createFlyingAnimal ( ) ; break ; case "Swimming animal" : createSwimmingAnimal ( ) ; break ; } startActivity ( manageZooIntent ) ; }
Create Animal of selected type and save to model
Create Animal of selected type and save to model
// Return to ZooManagerActivity