結果 : how to reverse user input string in java