right() is used to get last n digits from a String using Apex.
Syntax:
str.right( n );
Example:
String str = 'abcd';
System.debug( str.right( 3 ) ); // returns bcd
right() is used to get last n digits from a String using Apex.
Syntax:
str.right( n );
Example:
String str = 'abcd';
System.debug( str.right( 3 ) ); // returns bcd