Beginner APEX

Reverse a String in Apex

Apex's built-in String class has a reverse() method — no manual loop needed.

Given the variable input containing the string 'Salesforce', write one line of Apex that reverses it and prints the result with System.debug().

Log in to submit a solution.