Sizeof array in processing

batata004:
@OldSteve it worked perfectly! I could not find any documentation how to get the size of array using processing, but your help was perfect.

I am just wondering why println(val.length()) does not work and outputs an error in processin.

It's just the way the language is put together.
'length' is a variable, 'length()' is a function, each with it's own job to do.

'println(val.length)' will work.