From 442ee37075d08036efaab68cefeac1ce8875c37a Mon Sep 17 00:00:00 2001 From: AustrianToast Date: Sun, 5 Mar 2023 00:58:45 +0100 Subject: [PATCH] ReAdded line variable It was needed after all --- src/Matrix.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Matrix.java b/src/Matrix.java index b9ee6bd..b58f6dc 100644 --- a/src/Matrix.java +++ b/src/Matrix.java @@ -10,11 +10,12 @@ public class Matrix { public String[] importCSV(String file) { String[] result = new String[100]; + String line; try { BufferedReader br = new BufferedReader(new FileReader(file)); - while (br.readLine() != null) { - result = br.readLine().trim().split(";"); + while ((line = br.readLine()) != null) { + result = line.trim().split(";"); } br.close();