Here you can find the source of intToInteger(int[] array)
public static Integer[] intToInteger(int[] array)
//package com.java2s; //License from project: Open Source License public class Main { public static Integer[] intToInteger(int[] array) { if (array == null) { return null; } else {//from www. j ava 2 s. c o m Integer[] newArray = new Integer[array.length]; for (int i = 0; i < newArray.length; i++) { newArray[i] = array[i]; } return newArray; } } }