RosettaCodeData/Task/Reverse-a-string/Apex/reverse-a-string.apex
2023-07-01 13:44:08 -04:00

3 lines
69 B
Text

String str = 'Hello World!';
str = str.reverse();
system.debug(str);