Here you can find the source of long2int(final long[] a)
final static public int[] long2int(final long[] a)
//package com.java2s; public class Main { final static public int[] long2int(final long[] a) { final int[] i = new int[a.length]; for (int d = 0; d < a.length; ++d) i[d] = (int) a[d]; return i; }//from ww w . j a va 2 s.co m }