We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f8a61b commit a784eeeCopy full SHA for a784eee
src/main/java/Duke.java
@@ -3,14 +3,18 @@
3
import java.time.LocalDateTime;
4
import java.time.LocalTime;
5
import java.util.stream.Collectors;
6
+import java.nio.file.Paths;
7
+import java.nio.file.Path;
8
9
public class Duke {
10
11
private Ui ui;
12
private TaskList taskList;
13
private Boolean hasEnded = false;
14
private Parser parser;
- private static Storage storage = new Storage("Data/Duke.txt");
15
+ private static Path filePath = Paths.get("Data", "Duke.txt");
16
+ private static Storage storage = new Storage(filePath.toString());
17
+
18
19
public Duke() {
20
this.ui = new Ui();
0 commit comments