結果 : repeated characters count in a string java