aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "two dimension array " Watch "two dimension array " New topic
Author

two dimension array

vijayapriya thirumurugan
Greenhorn

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
Sheriff

Joined: Oct 13, 2005
Posts: 36482
    
  16
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: http://aspose.com/file-tools
 
subject: two dimension array
 
Similar Threads
Java IO, 1.2cert, appreciate u r help
multi dimension array
arrays with arraylist
array of arrays with arraylist
how to create multidim arraylist and access it