mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 01:50:44 +01:00
49 lines
858 B
XML
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 & 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>
|