String.length()
Signature
int length (String s1)
Description
Returns the length (number of characters) of the String passed in.
Parameters
Name | Type | Description |
s1 | String | A String to find the length of. |
Returns
Type | Description |
int | The length of the String passed in. |
Example
int result = String.length ("This is a test");
Result is:
result contains: 14