Notes
In Apex, the reverse()
method is a string method that returns a String with all the characters reversed.
Here's an example:
String txt1 = 'SALESFORCE';
String txt2 = txt1.reverse();
System.debug(txt2);
Output: ECROFSELAS
Video
Video does not exists.