Java code to Reverse a String.