I found a Java question J couldn't understand what should be answer
The TreeMap
and LinkedHashMap
classes:
- enable iteration of a map's entries based on the insertion order of elements only.
- enable iteration of a map's entries based on natural ordering of keys only.
- enable iteration of a map's entries in a deterministic order.
- enable iteration of a map's entries based either natural ordering of keys OR natural ordering of values depending on the arguments sent to the contructor.