結果 : write a program in java to reverse a string entered by the user