I have an ordered LinkedHashMap and i want to add element at specific index , say at first place or last place in the map.
How can i add element in LinkedHashMap at an specific position?
Even if I could add an element to FIRST or LAST position in LinkedHashMap would help!
You can not change the order. It is
insert-order(by default) oraccess-orderwith this constructor:See:
LinkedHashMap