Here you can find the source of splitStringToList(String pstrString, String pstrSep)
public static List<String> splitStringToList(String pstrString, String pstrSep)
//package com.java2s; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class Main { public static List<String> splitStringToList(String pstrString, String pstrSep) { if (pstrString == null || pstrSep == null) { return new ArrayList<String>(); }//from w w w .ja va 2 s.co m return new ArrayList<String>(Arrays.asList(pstrString.split(pstrSep))); } }