Collection of collections.

Hi all,

I am dealing with a search page which is having 8 search fields. i have a way for individual search fields. but i need to have multiple search.. with any to any combination in all the 8 fields. for this I need a List or an ArrayList which can hold Lists aagain.

Eg:

List a = null;

List b = null;

List c = null;

List d = null;

/* I want List d to hold the above 3 lists...

List d ={List a , List B, Listc }*/

it need not be a list only.. any collection which can hold any other collections.

If any one knows it pls reply.

[616 byte] By [lingamaneni] at [2007-9-26 1:17:22]
# 1
let me see if i got your problem right.you don't know if ArrayList (for instance) can hold another ArrayList or not.well, if that is the question, then answer is, they can.all collection classes can hold other collection class instances.hthpartha
parthasarkar at 2007-6-29 0:46:49 > top of Java-index,Archived Forums,Java Programming...