Skip to content

Commit

Permalink
Update startParse() to add input into taskList
Browse files Browse the repository at this point in the history
  • Loading branch information
euchangxian committed Aug 27, 2023
1 parent 8101159 commit 6acaa3f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/Duke.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ private void startParse() {
case "bye":
return;
default:
addTask(commandInput);
echo(commandInput);
}

Expand All @@ -55,4 +56,8 @@ private static String indentLeft(String input, int indentLength) {
private String getBotName() {
return this.botName;
}

private boolean addTask(String task) {
return this.taskList.add(task);
}
}

0 comments on commit 6acaa3f

Please sign in to comment.