Removed line variable
It just wasn't needed
This commit is contained in:
parent
922ddee386
commit
8b3a283118
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user