diff --git a/data/task-file b/data/task-file deleted file mode 100644 index a13a7893..00000000 --- a/data/task-file +++ /dev/null @@ -1,4 +0,0 @@ -T | X | task -T | 0 | task -E | X | project | today -T | 0 | new diff --git a/src/main/java/controller/Duke.java b/src/main/java/controller/Duke.java index eefe4c06..c6c4b91c 100644 --- a/src/main/java/controller/Duke.java +++ b/src/main/java/controller/Duke.java @@ -27,23 +27,23 @@ public Duke(String filePath) { } - public void run() { - ui.showWelcome(); - boolean isExit = false; - while (!isExit) { - try { - String fullCommand = ui.readCommand(); - ui.showLine(); // show the divider line ("_______") - Command c = Parser.parse(fullCommand); // make parse as static method !!! - c.execute(tasks, ui, storage); - isExit = c.isExit(); - } catch (DukeException e) { - ui.showError(e.getErrorMessage()); - } finally { - ui.showLine(); - } + public void run() { + ui.showWelcome(); + boolean isExit = false; + while (!isExit) { + try { + String fullCommand = ui.readCommand(); + ui.showLine(); // show the divider line ("_______") + Command c = Parser.parse(fullCommand); // make parse as static method !!! + c.execute(tasks, ui, storage); + isExit = c.isExit(); + } catch (DukeException e) { + ui.showError(e.getErrorMessage()); + } finally { + ui.showLine(); } - return; + } + return; }