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
String string="whatever"; String reverse = new StringBuffer(string).reverse().toString(); System.out.println(reverse);