Here you can find the source of stringToArrayList(String idString)
protected static List<String> stringToArrayList(String idString)
//package com.java2s; //License from project: Open Source License import java.util.Arrays; import java.util.List; public class Main { protected static List<String> stringToArrayList(String idString) { return Arrays.asList(idString.trim().split("\\s*" + "," + "\\s*")); }//w w w. ja v a 2 s .c o m }