Java tutorial
//package com.java2s; public class Main { public static Long[] strToLongArray(String str, String separator) { String[] sArr = str.split(","); Long[] lArr = new Long[sArr.length]; for (int i = 0; i < sArr.length; i++) { lArr[i] = Long.valueOf(sArr[i]); } return lArr; } }