I am trying figure out the order in which the values in a HashMap are/can be retrieved. Heres the code snippet for the same.
import java.util.HashMap; publ
A LinkedHashMap is what you're after. From the doco, it differs from HashMap in that it maintains a doubly-linked list running through all of its entries