This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

two dimension array

 
vijayapriya thirumurugan
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
Pie
Posts: 47274
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic