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