結果 : reverse words in a string in java without using functions