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