0
Doubt about lists.
I have a doubt about lists. The doubt is that can we create multidimensional Arraylists, Linkedlists and Hashmaps? If yes then how?
3 Answers
+ 2
Abhiraj Ghumare yes it is pretty much possible in Java. You can go through this link for understanding it better https://www.geeksforgeeks.org/multidimensional-collections-in-java/
+ 1
Two dimensional array:
int[][] twoD_arr = new int[10][20]; Three dimensional array:
int[][][] threeD_arr = new int[10][20][30];
You can create as many as you want .
0
I asked about arraylist not array