map的集合顺序怎么跟添加时候的顺序一样

声明map的时候 不用new HashMap()<>;

使用new LinkedHashMap()<>;

就完事了

posted @ 2020-05-19 18:40  史丹安  阅读(403)  评论(0编辑  收藏  举报