[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: array question



Bill,

    test[0].length

will give you this dimension.  You could also use, test[1].length, etc.
Since each of these elements is an array itself.

Cindy

Bill Woodson wrote:

> Hi All,
>
> How do get the length of dimensions of a multi dimensional array that are
> not the first dimension? In other words I want to get the second dimension
> length of "int [][] test=new int[200][100];" which in this case is 100.
>
> Thanks,
> Bill