Here you can find the source of toIntList(String valus)
public static Integer[] toIntList(String valus)
//package com.java2s; //License from project: Apache License public class Main { public static Integer[] toIntList(String valus) { Integer[] intList = null; try {/*ww w.j a v a2s . c o m*/ String[] strList = valus.replace(" ", "").split(","); intList = new Integer[strList.length]; for (int i = 0; i < strList.length; i++) { intList[i] = Integer.parseInt(strList[i]); } } catch (Exception e) { } return intList; } }