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) {
String[] result = null;
String line;
String[] result = new String[100];
try {
BufferedReader br = new BufferedReader(new FileReader(file));
line = br.readLine();
while (line != null) {
result = line.trim().split(";");
while (br.readLine() != null) {
result = br.readLine().trim().split(";");
}
br.close();
} catch (FileNotFoundException e) {
e.getStackTrace();
e.printStackTrace();
} catch (IOException e) {
e.getStackTrace();
e.printStackTrace();
}
return result;
}