How to Write&Read csv file in Java?
use OpenCSV
OpenCSV is able to serialize .csv files into preset and reusable schemas implemented as annotated Java pojo beans
<!-- https://mvnrepository.com/artifact/com.opencsv/opencsv -->
<dependency>
<groupId>com.opencsv</groupId>
<artifactId>opencsv</artifactId>
<version>5.7.1</version>
</dependency>