Here you can find the source of loadLongArray(BufferedReader in)
public static long[] loadLongArray(BufferedReader in)
//package com.java2s; //License from project: Open Source License import java.io.BufferedReader; import java.io.IOException; public class Main { public static long[] loadLongArray(BufferedReader in) { try {/*from w w w .j a va 2 s .c om*/ int dim = Integer.parseInt(in.readLine()); String[] vals = in.readLine().split("\\s+"); long[] ret = new long[dim]; for (int i = 0; i < ret.length; i++) { ret[i] = Long.parseLong(vals[i]); } return ret; } catch (IOException e) { throw new RuntimeException(e); } } }