結果 : print the repeated character in a string java