Here you can find the source of toInts(long[] array)
public static int[] toInts(long[] array)
//package com.java2s; //License from project: Apache License public class Main { public static int[] toInts(long[] array) { int[] ret = new int[array.length]; for (int e = 0; e < array.length; e++) { ret[e] = (int) array[e]; }//www . j a v a 2s . c o m return ret; } }