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

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

使用new LinkedHashMap()<>;

就完事了

猜你喜欢

转载自www.cnblogs.com/stan-an/p/12918743.html