From 8368100b439ffb630915007060abbccf08ffefe2 Mon Sep 17 00:00:00 2001 From: dylen chew <56499861+rgonslayer@users.noreply.github.com> Date: Tue, 20 Sep 2022 00:40:21 +0800 Subject: [PATCH] Update Storage.java --- src/main/java/jarvis/Storage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/jarvis/Storage.java b/src/main/java/jarvis/Storage.java index e1886b3723..0456ba1fb7 100644 --- a/src/main/java/jarvis/Storage.java +++ b/src/main/java/jarvis/Storage.java @@ -33,7 +33,7 @@ public Storage(String filePath) { * @throws IOException if error occurs when reading file. */ public List load() throws IOException { - File myFile = new File(System. getProperty("user. dir") + filePath); + File myFile = new File(System.getProperty("user. dir") + filePath); List taskList = new ArrayList<>(); if (!myFile.createNewFile()) { Scanner sc = new Scanner(myFile); @@ -61,7 +61,7 @@ public List load() throws IOException { * @throws IOException if error occurs when writing to data file. */ public void write(TaskList tasks) throws IOException { - File myFile = new File(System. getProperty("user. dir") + filePath); + File myFile = new File(System.getProperty("user. dir") + filePath); if (!myFile.getParentFile().exists()) { myFile.getParentFile().mkdirs(); }