Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

2d array lists and arrays

807591Jun 10 2008 — edited Jun 10 2008
I would like to hold information in a finite number of
Arraylists
. The number of lists ill never change, just the contents.

So, what I was wondering was if there is a way to construct an array of arraylists.

tried this:

ArrayList<Card>[] cards = new ArrayList<Card>()[13];

thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 8 2008
Added on Jun 10 2008
4 comments
176 views