結果 : java program to count occurrences of each character in string