1int[] arr = {1,2,3};
2IntStream.of(arr).boxed().collect(Collectors.toList());
1int[] ints = {1, 2, 3};
2List<Integer> intList = new ArrayList<Integer>(ints.length);
3for (int i : ints)
4{
5 intList.add(i);
6}
1int[] ints = {1,2,3};
2List<Integer> list = Arrays.stream(ints).boxed().collect(Collectors.toList());
3