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
It is very simple in minimum code of lines
public class ReverseString { public static void main(String[] args) { String s1 = "neelendra"; for(int i=s1.length()-1;i>=0;i--) { System.out.print(s1.charAt(i)); } } }