Reverse a String in place with java