File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes two dimension array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "two dimension array " Watch "two dimension array " New topic

two dimension array

vijayapriya thirumurugan

Joined: Apr 03, 2009
Posts: 16

hello sir,

i have two dimension. i want to store elements which are of arraylist format. that is each element in the two dimension are arraylist. i'm waiting..
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46320
Not a good idea to try putting generic classes into arrays.

It is however easy enough to create a List<List><Foo>> or even a List<List><List><Foo>>>.

By the way: There is no such thing as a 2-D array in Java. Only an array of arrays.
I agree. Here's the link:
subject: two dimension array
It's not a secret anymore!