結果 : java code to find occurrence of character in string