Is there any direct way to convert int array to Integer array with out looping element by element.
Brute force way will be
int [] a = {1,2,3};
Integer [] b = new Integer[a.length];
for(i =0; i<a.length; i++)
b[i]= i;
Is there any direct way with out traveling the entire array?