I was wondering if the presentation of the collection of values contained in the HashMap is supported when the HashMap changes.
For example, if I have a HashMap, the values () method returns L = {a, b, c} What happened to L if I add a new "d" element to the map? It is added at the end, that is, if I repeat the elements, is this order preserved?
In particular, if adding a new “d” element causes a rework, will the order be kept in L?
Many thanks!
source
share