Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

convert array to array list java

String[] arr = { 1, 2, 3, 4 }
ArrayList<Integer> list = new ArrayList<Integer>();
Collections.addAll(list, arr);
// 'list' now contains [1, 2, 3, 4]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #array #array #list #java
ADD COMMENT
Topic
Name
6+8 =