Use the Cowbell CVSParser like this:
// where parse takes a String String returned[][] = CSVParser.parse(getTestDataSet1());
or this
// where you hand it a file relative or absolute path and a delimiter String returned[][] = CSVParser.parseFile("testUsers.csv",",");
or this
// where you get all of the tokens back in a single list List parsedList = CSVParser.parseAsSingleList(csvInput,",");
or this
// where you get back a List of lists with each inner list corresponding to a row of tokens
List parsedList = CSVParser.parse(getTestDataSet1());
or this
Add Comment