Here you can find the source of toInteger(int[] arr)
public static Integer[] toInteger(int[] arr)
//package com.java2s; //License from project: Open Source License public class Main { public static Integer[] toInteger(int[] arr) { Integer[] ret = new Integer[arr.length]; for (int i = 0; i < arr.length; i++) { ret[i] = arr[i];//from w w w.j a v a 2s.c o m } return ret; } }