Here you can find the source of split(String str, String regex)
public static List<String> split(String str, String regex)
//package com.java2s; import java.util.Arrays; import java.util.List; public class Main { public static List<String> split(String str, String regex) { List<String> strList = null; if (str == null || str.equals("")) { return strList; }//from w w w .j a v a 2 s . c o m strList = Arrays.asList(str.split(regex)); return strList; } }