Here you can find the source of split(String input)
public static List<String> split(String input)
//package com.java2s; //License from project: LGPL import java.util.*; public class Main { private static final String defaultDelimiter = ","; public static List<String> split(String input) { return split(input, defaultDelimiter); }/*from w w w . j av a 2s . c om*/ public static List<String> split(String input, String delimiter) { if (input == null || input.isEmpty()) { return Collections.emptyList(); } return new ArrayList<String>(Arrays.asList(input.split(delimiter))); } }