結果 : reverse each word in a string in java without using functions