Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

ArrayList to primitive array

int[] arr = list.stream().mapToInt(i -> i).toArray();
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #ArrayList #primitive #array
ADD COMMENT
Topic
Name
1+9 =