結果 : how to loop through characters in a string java