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
In Java 8 :
int[] arr = {1,2,3}; IntStream.of(arr).boxed().collect(Collectors.toList());