結果 : reverse a string using while loop in java