void

          Java Map 循環(huán)比較排列

          ArrayList<Entry<Integer,Integer>> infoIds = new ArrayList<Entry<Integer,Integer>>(hashCount.entrySet());
                  Collections.sort(infoIds, 
          new Comparator<Map.Entry<Integer, Integer>>() {
                      
          public int compare(Map.Entry<Integer, Integer> o1, Map.Entry<Integer, Integer> o2) {
                          
          return (o2.getValue() - o1.getValue());
                      }
                  });

          posted on 2012-02-03 22:24 void 閱讀(321) 評論(0)  編輯  收藏 所屬分類: Java

          主站蜘蛛池模板: 通道| 涟源市| 津市市| 通城县| 双江| 新建县| 伊宁市| 南丰县| 镇坪县| 苏尼特左旗| 临沂市| 延津县| 莫力| 万源市| 平顺县| 康保县| 正宁县| 轮台县| 清镇市| 洛扎县| 萍乡市| 宁城县| 旅游| 双牌县| 定州市| 贵州省| 绥滨县| 达拉特旗| 枝江市| 潜山县| 高尔夫| 五河县| 吐鲁番市| 靖西县| 中西区| 南昌县| 仁化县| 惠水县| 镇康县| 蒙自县| 郁南县|