public class test{ public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while (scanner.hasNext()) { String str = scanner.nextLine(); char[] chars = str.toCharArray(); //统计每个字母的数量 HashMap<Character, I...