newbie question on 2 dim arraylist

  • Thread starter Thread starter Guest
  • Start date Start date
Hi,
nope, not natively like arrays, but you could have an arraylist of
arraylist if you want which simulates a 2D array i.e.

ArrayList list = new ArrayList();

for(int i=0; i<10; i++)
{
list = new ArrayList();
}


Now you can access the arraylist like a 2D object i.e. object x = list[x][y];

Hope that helps
Mark Dawson
http://www.markdawson.org
 
Back
Top