結果 : how to reverse a string using while loop in java