CSV Scanner I think
unknown
java
2 years ago
379 B
15
Indexable
List<String[]> input = new ArrayList<>();
try (Scanner input = new Scanner(csv)) {
while (Scanner.hasNextLine()) {
String line = Scanner.nextLine();
String[] values = line.split(",");
input.add(values);
}
} catch (Exception e) {
System.err.println("Unable to locate file: " + e.getMessage());
}
// Now the lines should be like {id, values...}Editor is loading...
Leave a Comment