Java csvformat Пример полутоже кишечника
Reader reader = Files.newBufferedReader(Paths.get("file.csv"));
CSVParser csvParser = CSVFormat.newFormat(';').withHeader().parse(reader);
for (CSVRecord record : csvParser) {
LOG.info("record {}", record.toString());
LOG.info("code {}", record.get(0));
}
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-csv</artifactId>
<version>1.6</version>
</dependency>
Machaallah mariam