Here you can find the source of split(String arg)
Parameter | Description |
---|---|
arg | Comma-delimited string to convert |
public static List<String> split(String arg)
//package com.java2s; /*/* www . j ava 2 s . c o m*/ * HawkEye Redux * Copyright (C) 2012-2013 Cubeville <http://www.cubeville.org> and contributors * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ import java.util.Arrays; import java.util.List; public class Main { /** * Converts a comma-delimited string to a list * * @param arg Comma-delimited string to convert * @return List of strings */ public static List<String> split(String arg) { return split(arg, ","); } /** * Converts a delimited string to a list * * @param arg Delimited string to convert * @param delimiter String delimiter * @return List of strings */ public static List<String> split(String arg, String delimiter) { return Arrays.asList(arg.split(delimiter)); } }