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