Java String Split split(String input)

Here you can find the source of split(String input)

Description

split

License

LGPL

Declaration

public static List<String> split(String input) 

Method Source Code

//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)));
    }
}

Related

  1. split(String candidate)
  2. split(String cmd)
  3. split(String content)
  4. Split(String content, String sub_seq)
  5. split(String input)
  6. split(String input)
  7. split(String s)
  8. split(String s)
  9. split(String s)