Here you can find the source of intsToLongs(int... ints)
public static long[] intsToLongs(int... ints)
//package com.java2s; //License from project: LGPL public class Main { public static long[] intsToLongs(int... ints) { long g[] = new long[ints.length]; for (int i = 0; i < ints.length; i++) g[i] = ints[i];//www . j a v a 2 s. c o m return g; } }