RosettaCodeData/Task/Reverse-a-string/Apex/reverse-a-string.apex

4 lines
69 B
Plaintext

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