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
//Solution #1 -- Using array and charAt() String name = "reverse"; //String to reverse Character[] nameChar = new Character[name.length()]; // Declaring a character array with length as length of the String which you want to reverse. for(int i=0;i