Answers for "add 2d array to arraylist java"

0

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>());
}
Posted by: Guest on March-23-2021
0

how to create a 2d arraylist java

ArrayList<ArrayList<Object>> a = new ArrayList<ArrayList<Object>>();
Posted by: Guest on April-15-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language