1) How to reverse a string?
Sigiloso
public class ReversedString { public static void main(String[] args) { String output = reverse("123456789"); System.out.println(output); } private static String reverse(String str) { String sb = new StringBuffer(str).reverse().toString(); return sb; } }