convert arraylist of integers to array primitive
//only works in java 8 or later
list.stream().mapToInt(i -> i).toArray();
4.5
6
list.stream().mapToInt(i -> i).toArray();
Thank you!
6
0
Are there any code examples left?
New code examples in category Java