Skip to content

Commit

Permalink
change file name to constant
Browse files Browse the repository at this point in the history
  • Loading branch information
XunyiiZ committed Mar 22, 2022
1 parent dc57be4 commit 458cdd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/controller/Duke.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public class Duke {
private Storage storage;
private TaskList tasks;
private UI ui;
private static final String FILE_PATH = "task-file";


public Duke(String filePath) {
Expand Down Expand Up @@ -48,6 +49,6 @@ public void run() {


public static void main(String[] args) {
new Duke("task-file").run();
new Duke(FILE_PATH).run();
}
}

0 comments on commit 458cdd6

Please sign in to comment.