Studyon Minte9.com
Java SE




Reverse




package testexample; public class Test { public static void main(String[] args) { String rs = new StringBuffer("abc").reverse().toString(); System.out.println(rs); // Outputs: cba } }
 


http://stackoverflow.com/questions/2441501/reverse-hello-world-in-java