結果 : program to count characters in a string in java