The order of string type data and integer type data taken from the map

They all implement the object hashcode method. Why is the integer type data taken out of the map in order?
Because the numeric hash value is itself, it is in order.

Guess you like

Origin blog.csdn.net/weixin_47785112/article/details/109190722