Possible Duplicate:
How to create multidemensional arraylist in Java?
I have been having trouble understanding if and how an multidimensional Arraylist can be created. I know that from an ArrayList objects can be added,removed,checked, etc. and can be made two dimensionally, but can it be made 3 dimensionally.
- 2D
ArrayList<object1,object2,object3>
- 3D
ArrayList<>
?
I know a regular array can be multidimensional simply by int[][]
adding another set of brackets, but does an ArrayList work the same way?