結果 : write a program to reverse the whole string. in java