Map的有序实现类和无序实现类

1.HashMap不是有序的;

2.TreeMap和LinkedHashMap是有序的(TreeMap默认升序,LinkedHashMap则记录了插入顺序)。

原文地址:https://www.cnblogs.com/lxcmyf/p/5787902.html