convert arrayList of Intgers to array of int java code example
Example: integer arraylist to int array
//only works in java 8 or later
list.stream().mapToInt(i -> i).toArray();
//only works in java 8 or later
list.stream().mapToInt(i -> i).toArray();