Object[] key_arr = hashmap.keySet().toArray();
Arrays.sort(key_arr);
for (Object key : key_arr) {
Object value = hashmap.get(key);
}
转载自 http://blog.csdn.net/zxy_snow/article/details/6979263
Object[] key_arr = hashmap.keySet().toArray();
Arrays.sort(key_arr);
for (Object key : key_arr) {
Object value = hashmap.get(key);
}