Here you can find the source of split(String line, String delimiter)
public static List<String> split(String line, String delimiter)
//package com.java2s; //License from project: Apache License import java.util.Arrays; import java.util.List; public class Main { private static final String DEFAULT_DELIMITER = ","; public static List<String> split(String line, String delimiter) { String[] elements = line.split(delimiter); return Arrays.asList(elements); }/*from w w w .j a v a 2 s . c o m*/ public static List<String> split(String line) { return split(line, DEFAULT_DELIMITER); } }