結果 : string program to count characters in java