結果 : java program to check occurrence of each character in string