We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Array of Arraylists
Page Index Toggle Pages: 1
Array of Arraylists (Read 627 times)
Array of Arraylists
Apr 11th, 2009, 10:19am
 
I need to create an Array of Arraylists... any thoughts on how to write that?

It doesn't like my attempt at...
Code:

ArrayList subnodes[];
...
subnodes[0] = new ArrayList();
subnodes[1] = new ArrayList();
Re: Array of Arraylists
Reply #1 - Apr 11th, 2009, 10:52am
 
ArrayList[] subnodes = new ArrayList[5];

subnodes[0] = new ArrayList();
subnodes[1] = new ArrayList();
...
Re: Array of Arraylists
Reply #2 - Apr 11th, 2009, 11:59am
 
I was so close... haha   Thanks Smiley
Page Index Toggle Pages: 1