Sizeof array in processing

I just did a quick test using Processing3. This prints 5:-

String[][] val = {{"0","6","10"},{"1","10","10"},{"1","10","14"},{"1","10","14"},{"1","10","14"}};
int i = val.length;
println(i);

And this prints 3:-

String[][] val = {{"0","6","10"},{"1","10","10"},{"1","10","14"},{"1","10","14"},{"1","10","14"}};
int i = val[0].length;
println(i);

Edit: No need to go to the Processing forum after all. :smiley:

Edit2: After a bit more playing, I found that this returns the length of an individual element:-
(The first element of the first array in this case.)

String[][] val = {{"0","6","10"},{"1","10","10"},{"1","10","14"},{"1","10","14"},{"1","10","14"}};
println(val[0][0].length());

Note the parentheses after 'length' in this example. They're required.)