Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

creating a 2d arraylist in java

List<List<String>> listOfLists = new ArrayList<List<String>>(size); 
for(int i=0; i<size; i++) {
	listOfLists.add(new ArrayList<String>());
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #creating #arraylist #java
ADD COMMENT
Topic
Name
6+3 =