M
Mike
Hi
In array, if we want to know the number of elements of a array, we can
use
a.length
However, if we want to know the number of characters of a string, we
use
a.length()
Why is there no parenthesis in the former, and is there parenthesis in
the latter?
thank you in advance.
Mike
In array, if we want to know the number of elements of a array, we can
use
a.length
However, if we want to know the number of characters of a string, we
use
a.length()
Why is there no parenthesis in the former, and is there parenthesis in
the latter?
thank you in advance.
Mike