Hi!
I'm wondering what this line does:
What willCode: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];
hold exactly?Code:al
Later on this is done:
Shouldn't al.size() always just be 1 or am I missing something here?Code:int n = al.size();
for (int q = 0; q < n; q++) {
int j = ((Integer)al.get(q)).intValue();
........
Please help