Here you can find the source of strToList(String value)
public static List<Object> strToList(String value)
//package com.java2s; //License from project: Apache License import java.util.ArrayList; import java.util.List; public class Main { public static List<Object> strToList(String value) { List<Object> result = new ArrayList<Object>(); String[] strs = value.split(","); for (String s : strs) { result.add(s);//from w w w . jav a2s . c om } return result; } }