結果 : java program to print occurrence of character in string