Here you can find the source of stringToList(String toList)
public static List<String> stringToList(String toList)
//package com.java2s; //License from project: LGPL import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class Main { public static List<String> stringToList(String toList) { String[] st = toList.split(";"); List<String> list = new ArrayList<>(Arrays.asList(st)); return list; }/* w w w. j a v a2 s.c om*/ }