結果 : java code to reverse a string while preserving the whitespace