結果 : write java program to print occurrence of character in a string without using hashmap