Hi!

I'm wondering what this line does:
Code:
ArrayList[][] grid = new ArrayList[100][50];

water.grid[h][v].push_back(&i);

// c and d are calculated values.
ArrayList al = this.grid[c][d];
What will
Code:
al
hold exactly?

Later on this is done:

Code:
int n = al.size();
for (int q = 0; q < n; q++) {
   int j = ((Integer)al.get(q)).intValue();
   
   ........
Shouldn't al.size() always just be 1 or am I missing something here?

Please help