//把map表转为特定的字符串 String st = getMapSring(map); return st; } private static String getMapSring(TreeMap<Character, Integer> map) { StringBuilder sb = new StringBuilder(); //遍历map表 /*for (Iterator<Map.Entry<Character,Integer>> it = map.entrySet().iterator();it.hasNext();)...