Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

List of Integer to int array

int[] example1 = list.stream().mapToInt(i->i).toArray();
// OR
int[] example2 = list.stream().mapToInt(Integer::intValue).toArray();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #List #Integer #int #array
ADD COMMENT
Topic
Name
9+4 =