Here you can find the source of intArrayToLongArray(int[] ints)
public static long[] intArrayToLongArray(int[] ints)
//package com.java2s; //License from project: LGPL public class Main { public static long[] intArrayToLongArray(int[] ints) { long[] ret = new long[ints.length / 2]; for (int i = 0; i < ints.length; i += 2) { ret[i / 2] = ((long) ints[i]) << 32 | ints[i + 1]; }//from www .j av a2s.c om return ret; } }