一个菜狗来问问第二道题       List<Map.Entry<String,Integer>> list=new ArrayList<>(hm.entrySet());         Collections.sort(list,new Comparator<Map.Entry<String,Integer>>(){             public int compare(Map.Entry<String,Integer> o1, Map.Entry<String,Integer> o2){              if(o1.getValue()==o2.getValue()){              return o1.getKey().compareTo(o2.getKey());              }else{              return o1.getValue()-o2.getValue();              }             }                   }); 这个样写咋不对啊