Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

convert array of int to arraylist java

int[] ints = {1, 2, 3};
List<Integer> intList = new ArrayList<Integer>(ints.length);
for (int i : ints)
{
    intList.add(i);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #array #int #arraylist #java
ADD COMMENT
Topic
Name
3+1 =