Here you can find the source of explodeLongs(String line, String sep)
public static List<Long> explodeLongs(String line, String sep)
//package com.java2s; /*//ww w. j a v a 2 s .co m * Copyright (C) ${year} Omry Yadan <${email}> * All rights reserved. * * See https://github.com/omry/banana/blob/master/BSD-LICENSE for licensing information */ import java.util.*; public class Main { public static List<Long> explodeLongs(String line, String sep) { List<Long> res = new ArrayList<Long>(); StringTokenizer t = new StringTokenizer(line, sep); while (t.hasMoreElements()) { res.add(Long.parseLong(t.nextToken())); } return res; } }