/** You may copy this example and use it for any purpose, commercial or otherwise. */ import com.ricebridge.csvman.CsvManager; import java.util.*; import java.io.*; /** Load some CSV data. */ public class Load { public static void main( String[] args ) throws Exception { // load the data CsvManager csvman = new CsvManager(); List data = csvman.load( "cities.csv" ); // print the data System.out.println( "Name\tCountry" ); for( int line = 1; line < data.size(); line++ ) { String[] fields = (String[]) data.get(line); System.out.println( fields[0]+"\t"+fields[1] ); } } }