Removed line variable

It just wasn't needed
This commit is contained in:
AustrianToast 2023-03-05 00:46:02 +01:00
parent 922ddee386
commit 8b3a283118

View File

@ -9,22 +9,19 @@ public class Matrix {
} }
public String[] importCSV(String file) { public String[] importCSV(String file) {
String[] result = null; String[] result = new String[100];
String line;
try { try {
BufferedReader br = new BufferedReader(new FileReader(file)); BufferedReader br = new BufferedReader(new FileReader(file));
line = br.readLine();
while (line != null) { while (br.readLine() != null) {
result = line.trim().split(";"); result = br.readLine().trim().split(";");
} }
br.close(); br.close();
} catch (FileNotFoundException e) { } catch (FileNotFoundException e) {
e.getStackTrace(); e.printStackTrace();
} catch (IOException e) { } catch (IOException e) {
e.getStackTrace(); e.printStackTrace();
} }
return result; return result;
} }