From d7274aa2822dffb079fc5adf3c1f0a69bc9cbdf9 Mon Sep 17 00:00:00 2001 From: nicktohzyu Date: Wed, 16 Sep 2020 15:30:16 +0800 Subject: [PATCH] Update Parser.java --- src/main/java/Parser.java | 3 +++ 1 file changed, 3 insertions(+) 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 :-("); }