TreeMap 根据key 倒序排序


Map  dataMap = new TreeMap();

dataMap = ((TreeMap) dataMap).descendingMap();


java.util.TreeMap中的descendingMap()可实现

你可能感兴趣的:(集合框架,TreeMap,排序)