I have \"Hello World\" kept in a String variable named hi.
\"Hello World\"
hi
I need to print it, but reversed.
How can I do this? I understand there
Take a look at the Java 6 API under StringBuffer
String s = "sample"; String result = new StringBuffer(s).reverse().toString();