repl.it
linkSuggested pre-tutorial preparations:
find
command to locate persons by name?PersonBook#lastShownList
? Is it really needed?FYI, here's a relevant video used in the textbook
During the tutorial, demo your ability to do debugging using an IDE by performing the following tasks:
Main
class.
/** Reads the user command and executes it, until the user issues the exit command. */
private void runCommandLoopUntilExitCommand() {
Command command;
do {
String userCommandText = ui.getUserCommand();
command = new Parser().parseCommand(userCommandText);
CommandResult result = executeCommand(command);
personBook.setLastShownList(result.getRelevantPersons());
ui.showResultToUser(result);
} while (!ExitCommand.isExit(command));
}
list
.main
method.What's the purpose of the variable
PersonBook#lastShownList
? Is it really needed?