repl.it
linkrepl.it
link (duplicated)Suggested 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));
}
main
method.list
command after adding two persons. Show how to set a conditional breakpoint so that execution pauses when the user types in the command list
but doesn't pause for other commands.