Here you can find the source of longToInt(long[] values)
public static int[] longToInt(long[] values)
//package com.java2s; public class Main { public static int[] longToInt(long[] values) { if (values == null) { return null; }/* w w w. j a va 2s. c o m*/ int[] results = new int[values.length]; for (int i = 0; i < values.length; i++) { results[i] = (int) values[i]; } return results; } }