Here you can find the source of split(String text, String delimiter)
public static List<String> split(String text, String delimiter)
//package com.java2s; import java.util.ArrayList; import java.util.List; public class Main { public static List<String> split(String text, String delimiter) { String[] parts = text.split(delimiter); List<String> list = new ArrayList<String>(); for (String part : parts) { list.add(part);//from w w w . j ava2 s .co m } return list; } }