How do I convert int[] into List in Java?
int[]
List
Of course, I\'m interested in any other answer than doing it in a loop, item by it
What about this:
int[] a = {1,2,3}; Integer[] b = ArrayUtils.toObject(a); List c = Arrays.asList(b);