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