Here you can find the source of int2Integer(int[] array)
public static Integer[] int2Integer(int[] array)
//package com.java2s; //License from project: Open Source License public class Main { public static Integer[] int2Integer(int[] array) { int len = array.length; Integer[] temp = new Integer[len]; int count = 0; for (int i : array) { temp[count++] = i;//from w ww . j a v a 2 s . co m } return temp; } }