integer arraylist to integer code example
Example 1: convert int array to integer list java
int[] arr = {1,2,3};
IntStream.of(arr).boxed().collect(Collectors.toList());
Example 2: convert arraylist to array int
templist.stream().mapToInt(i->i).toArray();