Here you can find the source of toLongList(String str, String splitStr)
public final static List<Long> toLongList(String str, String splitStr)
//package com.java2s; //License from project: Apache License import java.util.ArrayList; import java.util.List; public class Main { public final static List<Long> toLongList(String str, String splitStr) { if (str != null) { ArrayList<Long> longList = new ArrayList<Long>(); String[] strList = str.split(splitStr); for (String string : strList) { longList.add(Long.parseLong(string)); }/*from ww w. j a va 2 s . c o m*/ return longList; } return null; } }