Here you can find the source of toLongList(String valus)
public static Long[] toLongList(String valus)
//package com.java2s; //License from project: Apache License public class Main { public static Long[] toLongList(String valus) { Long[] longList = null;//from w ww . jav a 2 s . co m try { String[] strList = valus.replace(" ", "").split(","); longList = new Long[strList.length]; for (int i = 0; i < strList.length; i++) { longList[i] = Long.parseLong(strList[i]); } } catch (Exception e) { } return longList; } }