Here you can find the source of getListFromCSV(String myCsv)
static public List<String> getListFromCSV(String myCsv)
//package com.java2s; import java.util.ArrayList; import java.util.List; public class Main { static public List<String> getListFromCSV(String myCsv) { List<String> output = new ArrayList(); if (null == myCsv) return output; String[] fields = myCsv.split(","); if (null == fields) return output; for (int i = 0; i < fields.length; i++) { output.add(fields[i]);/*from w ww.j a v a2 s . c om*/ } return output; } }