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
public String reverse(String s) { String reversedString = ""; for(int i=s.length(); i>0; i--) { reversedString += s.charAt(i-1); } return reversedString; }