一眼HashMap问题,简单,而且做一点点修改还能再实现统计字符出现次数 import java.util.Map; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.nextLine(); char[] chars = str.toCharArray(); Map<Cha...