Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

convert arraylist to array in java

Integer[] arr = new Integer[al.size()]; 
for (int i = 0; i < al.size(); i++) 
     arr[i] = al.get(i); 
Source by dzone.com #
 
PREVIOUS NEXT
Tagged: #convert #arraylist #array #java
ADD COMMENT
Topic
Name
6+5 =