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(); }