参考该文章
https://www.javatree.cn/news/8e971ddbde5445bca293a17650df43b3
public static void main(String[] args){
System.out.println("hello world");
}
简单来说,需要排序就用TreeMap,不需排序则使用 HashMap
详情请看:HashMap 的数据结构
http://www.cnblogs.com/xingzc/p/5765572.html