Java中HashMap的排序问题1.HashMap是散列表,打印出来的值是无序的
2.可以利用TreeMap对HashMap的key进行升序排序:SortedMap sm = new TreeMap<Character,Integer>(myHashMap);