結果 : loop through all characters in a string java