diff --git a/src/main/java/Parser.java b/src/main/java/Parser.java index e1429586df..008a5b0086 100644 --- a/src/main/java/Parser.java +++ b/src/main/java/Parser.java @@ -98,6 +98,9 @@ String parse(String input) { case "sort": tasks.sort(); break; + case "bye": + System.exit(0); + break; default: throw new DukeException("I'm sorry, but I don't know what that means :-("); }