How do I make a list of lists?

Hi

I’ve read a couple of questions about this but none seem to work for me. I have a list of strings created by:

private var wave1 : List.<String> = new List.<String>();

I want several waves, and I want each of those to be stored in a list too. Something like:

private var waveArray : List.< List > = new List.< List >();

Obviously the above line doesn’t work - how should I write this?

Thanks

Ah, this works:

private var waveArray : List.< List.<String> > = new List.< List.<String> >();

You gave me the right idea - think the syntax was just a bit wrong.

Cheers

var l :List<List> = new List<List>;

or it is

var l :List<List<String>> = new ArrayList<ArrayList<String>>;