結果 : write a java program to reverse a given string with preserving the position of spaces