i found java question j couldn't understand should answer
the treemap , linkedhashmap classes:
- enable iteration of map's entries based on insertion order of elements only.
- enable iteration of map's entries based on natural ordering of keys only.
- enable iteration of map's entries in deterministic order.
- enable iteration of map's entries based either natural ordering of keys or natural ordering of values depending on arguments sent contructor.
in java:
treemapmapautomatically sortsmapentries according natural ordering usingcomparable<t>interfacelinkedhashmapmap guarantees entries returned in same order added
Comments
Post a Comment