public class MapTest {
public static void main(String[] args) {
Map map = new HashMap<>();
map.put("16", "1");
map.put("15", "2");
System.out.println(map);
}
}
这里先插入的key是16,然后插入key 15
执行的结果如下:
{15=2, 16=1}
为什么先输出了15啊?我怎么弄才能先输出16啊?
求大lao告知,感激不尽。