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?

8th Apr 2020, 10:35 AM
Abhiraj Ghumare
Abhiraj Ghumare - avatar
3 odpowiedzi
+ 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/
8th Apr 2020, 2:46 PM
Avinesh
Avinesh - avatar
+ 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 .
8th Apr 2020, 11:13 AM
Ayush Kumar
Ayush Kumar - avatar
0
I asked about arraylist not array
8th Apr 2020, 11:21 AM
Abhiraj Ghumare
Abhiraj Ghumare - avatar