Remember, a multi-dimensional array is simply an array of
arrays, each of which might be a different length.
So if arrayName is a 2-dimensional array, then arrayName.length gives the first dimension; and
iterating through each arrayName[x].length (up to arrayName.length) gives the "second" dimensions -- which are the lengths of each first-dimension instance.
vannia: Note that in an array (unlike
String), length is a
variable -- not a method. So this
would be a.length -- not a.length().
[ December 01, 2004: Message edited by: marc weber ]