Coming from C/C++? In Java an array is an object that has a property called lenght; it is not a simple block of memory. Therefore the issue with passing arrays as arguments to methods and not knowing how many elements they contain doesn't exist in Java.
> The reference I have says I can declare this:
Sounds like your reference is not very reliable; what you quote is utterly false.
In Java the brackets that declare an array can go behind both the type and the varible, so "String btns" declares a four-dimensional array of Strings. I think you meant to write "String btns" which would be only two-dimensional.
[ October 01, 2006: Message edited by: Joni Salonen ] [ October 01, 2006: Message edited by: Joni Salonen ]
Joined: Sep 04, 2006
Yes, many, many years at C/C++, a short time with Java!