标签:map 集合排序
//TreeMap自动排序
Map<String, String> params = new TreeMap<String, String>(
new Comparator<String>() {
public int compare(String obj1, String obj2) {
// 升序排序
return obj1.compareTo(obj2);
}
});
标签:map 集合排序
原文地址:http://1008610086.blog.51cto.com/4995677/1775339