length and the length of the [JAVA] java ()
Others
2019-09-08 18:55:04
views: null
Reference links:
Seek length length java sometimes in parentheses, sometimes without parentheses, in the end when to add parentheses it?
to sum up:
- String class in Java string object defined by length () find its length.
- If the array length requirements, can use their own property length.
- Namely: the array without the string to add
Summary of the requirements length:
Array .length |
Attributes |
Return value int |
String .length () |
method |
Return value int |
Collection .size () |
method |
Return value int |
Origin www.cnblogs.com/anliux/p/11486439.html