map中取出的string类型数据和integer类型的数据的顺序

it2023-11-02  58

他们都实现的object的hashcode方法,为什么从map中取出的integer类型的数据是有序的呢? 因为数值型的hash值是本身,所以是有序的.

最新回复(0)