1import com.opencsv.CSVReader;
2import java.io.IOException;
3import java.io.FileReader;
4
5
6...
7
8try {
9 CSVReader reader = new CSVReader(new FileReader("yourfile.csv"));
10 String[] nextLine;
11 while ((nextLine = reader.readNext()) != null) {
12 // nextLine[] is an array of values from the line
13 System.out.println(nextLine[0] + nextLine[1] + "etc...");
14 }
15} catch (IOException e) {
16
17}