Here you can find the source of intsToIntegers(int... ints)
public static Integer[] intsToIntegers(int... ints)
//package com.java2s; /*/*from w w w . j ava 2 s . co m*/ * Copyright (c) 2014 Roc Project. This is free software. See * LICENSE.txt for details. */ public class Main { /** * Converts an array of ints to an array of Integers. */ public static Integer[] intsToIntegers(int... ints) { Integer[] integers = new Integer[ints.length]; for (int index = 0; index < ints.length; ++index) { integers[index] = Integer.valueOf(ints[index]); } return integers; } }