Here you can find the source of longToIntArr(long[] longArr)
private static int[] longToIntArr(long[] longArr)
//package com.java2s; //License from project: Open Source License public class Main { private static int[] longToIntArr(long[] longArr) { int[] intArr = new int[longArr.length]; for (int i = 0; i < longArr.length; i++) { intArr[i] = (int) longArr[i]; }/*from w w w .j a va 2s .co m*/ return intArr; } }