zoo_app/app/src/main/java/com/example/jhalloran/zoo/ui/create/CreateZookeeperActivity.java
private void saveZookeeper() {
    EditText nameView = findViewById(R.id.create_zookeeper_name);
    zoo.addZookeeper(
        new Zookeeper(nameView.getText().toString(), getSelectedPenTypes()));
    // Return to ZooManagerActivity
    startActivity(manageZooIntent);
  }
// Create new Zookeeper and save to model
Create new Zookeeper and save to model
Create new Zookeeper and save to model
private void saveZookeeper() {
    EditText nameView = findViewById(R.id.create_zookeeper_name);
    zoo.addZookeeper(
        new Zookeeper(nameView.getText().toString(), getSelectedPenTypes()));
    startActivity(manageZooIntent);
  }
private void saveZookeeper ( ) { EditText nameView = findViewById ( R . id . create_zookeeper_name ) ; zoo . addZookeeper ( new Zookeeper ( nameView . getText ( ) . toString ( ) , getSelectedPenTypes ( ) ) ) ; startActivity ( manageZooIntent ) ; }
Create new Zookeeper and save to model
Create new Zookeeper and save to model
// Return to ZooManagerActivity