//TreeMap自动排序
Map<String, String> params = new TreeMap<String, String>(
new Comparator<String>() {
public int compare(String obj1, String obj2) {
// 升序排序
return obj1.compareTo(obj2);
}
});
时间: 2024-08-26 03:28:48
//TreeMap自动排序
Map<String, String> params = new TreeMap<String, String>(
new Comparator<String>() {
public int compare(String obj1, String obj2) {
// 升序排序
return obj1.compareTo(obj2);
}
});