made a low-level mistake# Java - 爪哇娇娃
c*n
1 楼
HashMap.values() HashMap.keySet() actually returns a *view* of the
underlying map, so if the map changes, the returned view also changes....
I thought it returns a completely new collection
underlying map, so if the map changes, the returned view also changes....
I thought it returns a completely new collection