I am putting values in HashMap.
But when I am reading values from that HashMap;
I am NOT getting those values in the ORDER in which I have added them.
Can any-one help me?.
I am putting values in HashMap. But when I am reading values from that
Share
HashMapdoesn’t guarantee that the insertion-order is preserved.Use
LinkedHashMapif you need such guarantee.