結果 : reverse a string in java taking input from user