String
.
right()
Signature
String right (String s1, int length)
Domain
action, condition
Description
Returning a String containing the last
length
characters of the string
s1
.
Parameters
Name
Type
Description
s1
String
A String to test.
length
int
The length of the String.
Returns
Type
Description
String
The result String.
Cautions
none
Example
String result = String.right ("Hello world", 7);
Result is:
result: "o world"