If you want to use a multidimensional arraylist to store values of coordinates for example, you can convert the coordinates to absolute values and use an arraylist still. For example, (4,5) would translate to 5 * TotalNumberOfColumns + 4
If the total number of columns is 6, this would result in 34.
This way every coordinate is unique, assuming you use (0,0) for the upperleft corner. Translating it back into coordinates:
x = AbsoluteValue Mod TotalNumberOfColumns (34 mod 6 = 4)
y = Int(AbsoluteValue / TotalNumberOfColumns) (the integer part of (34 / 6 = 5.666666666) is 5)
I hope that may be useful.
Regards, Ruffnekk
---
Is it my imagination or do buffalo wings taste just like chicken?