Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to put array in array list stack overflow

 // Declare it
 List<Integer>[] array = new List<Integer>[5]; 

 // Put something into an array element
 array[3] = new ArrayList<Integer>();

 // Access an element -- it's a List
 List<Integer> list = array[3];
 Integer x = list.get(0);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #put #array #array #list #stack #overflow
ADD COMMENT
Topic
Name
1+4 =