convert int array to arraylist java 8 code example
Example 1: list to int array in java 8
int[] array = list.stream().mapToInt(i->i).toArray();
Example 2: convert arraylist of integers to array primitive
list.stream().mapToInt(i -> i).toArray();