public AddBoatController() { this.addBoatView = new AddBoatView(); addBoatView.showAddBoatMenu(); addBoatView.showMemberList(); member = addBoatView.getSelectedMember(); if (member != null) { saveBoat(); } else { StartController startController = new StartController(); } }
public AddBoatController() { this.boatView = new AddBoatView(); boatView.showAddBoatMenu(); boatView.showMemberList(); choice = boatView.getChoice(); if (boatView.doesMemberExist()) { saveBoat(); } else { StartController startController = new StartController(); } }