opencsv

http://opencsv.sourceforge.net/
JavaCSVパーサー。

How do I read and parse a CSV file?

If you want to use an Iterator style pattern, you might do something like this:

CSVReader reader = new CSVReader(new FileReader("yourfile.csv"));
String [] nextLine;
while ((nextLine = reader.readNext()) != null) {
// nextLine[] is an array of values from the line
System.out.println(nextLine[0] + nextLine[1] + "etc...");
}


Or, if you might just want to slurp the whole lot into a List, just call readAll()...

CSVReader reader = new CSVReader(new FileReader("yourfile.csv"));
List myEntries = reader.readAll();


which will give you a List of String[] that you can iterate over. If all else fails, check out the Javadoc.