CSV Scanner I think
unknown
java
a year ago
379 B
14
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