結果 : reverse words in a string java without using split function