Reverse a String (Java) added.