Here you can find the source of getStringList(String csv)
static List<String> getStringList(String csv)
//package com.java2s; //License from project: Apache License import java.util.ArrayList; import java.util.List; public class Main { static List<String> getStringList(String csv) { String[] eqArr = csv.split(","); List<String> subStringList = new ArrayList<String>(); for (int i = 0; i < eqArr.length; i++) { String eqString = eqArr[i].trim(); subStringList.add(eqString); }/* w w w . j a v a 2 s.c om*/ return subStringList; } }