collection of collections
1 posts in topic
Flat View  Flat View

Posted By:   christian_cormier
Posted On:   Wednesday, May 1, 2002 01:57 PM

How to implement a collection of collections, a collection of lists for example?

Please use html tags to format code blocks.

Re: collection of collections

Posted By:   AlessandroA_Garbagnati  
Posted On:   Wednesday, May 1, 2002 02:04 PM


A collection contains Objects, so you can do that.

List mainList = new ArrayList();

for (int i=0; i<5; i++) {

  mainList.add(new ArrayList());

About | Sitemap | Contact