Here you can find the source of stringToList(String listText)
public static List<Object> stringToList(String listText)
//package com.java2s; //License from project: Apache License import java.util.ArrayList; import java.util.List; public class Main { private static final String SEP1 = "="; public static List<Object> stringToList(String listText) { if (listText == null || listText.equals("")) { return null; }//from w ww . j av a2 s .c om List<Object> list = new ArrayList<Object>(); String[] text = listText.split(SEP1); for (String str : text) { list.add(str); } return list; } }