Here you can find the source of commaSeparatedStringToList(String csvListStr)
public static List<String> commaSeparatedStringToList(String csvListStr)
//package com.java2s; //License from project: LGPL import java.util.ArrayList; import java.util.List; public class Main { public static List<String> commaSeparatedStringToList(String csvListStr) { List<String> list = new ArrayList<String>(); if (csvListStr != null && csvListStr.trim().length() > 0) { String[] ignoreListArr = csvListStr.split(","); for (int i = 0; i < ignoreListArr.length; i++) { list.add(ignoreListArr[i]); }//from ww w . j a v a 2 s.com } return list; } }