map顺序问题(接我的上篇博客) map在存储的时候,一般是无序的,我们有时在使用的时候可能不方便,这时候可以用java.util.LinkedHashMap,解决存取顺序问题 // 创建一个有序map集合 Map<String, Integer> maps = new LinkedHashMap<String,Integer>();