Files
processing4/mobile/web/reference/API/String_length.xml
2005-01-27 06:48:42 +00:00

49 lines
858 B
XML

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>length()</name>
<category>String</category>
<subcategory>Method</subcategory>
<usage>Web &amp; Application</usage>
<example>
<image></image>
<code>
String str1 = "CCCP";
String str2 = "Rabbit";
int l1 = str1.length();
int l2 = str2.length();
println(l1 + ":" + l2); // Prints '4:6'
</code>
</example>
<description>
Returns the total number of characters included in the string as an integer number. <br />Note: You find the size of an array with the length field which works a little differently from String's <b>length()</b> method.
</description>
<syntax>
charAt()
</syntax>
<parameter>
<label></label>
<description></description>
</parameter>
<returns>int</returns>
<related>
</related>
<availability>1.0</availability>
<type>Method</type>
<partof>Core</partof>
</root>