Here you can find the source of stringToList(String source)
Parameter | Description |
---|---|
source | comma separated strings |
static public List<String> stringToList(String source)
//package com.java2s; //License from project: LGPL import java.util.*; public class Main { /**/*from w ww . j a v a2s .co m*/ * Comma separated strings to List * * @param source comma separated strings * @return String List */ static public List<String> stringToList(String source) { return Arrays.asList(source.split("\\s*,\\s*")); } }