int intArray[] = {1,2,3}; List<Integer> iList = Arrays.stream(intArray).boxed().collect(Collectors.toList());