I have this Java Map:
Can you tell me how I can get the 6-th element of the Map?
private static final Map cache = new HashMap<
The HashMap has no defined ordering of keys.It's Unordered.
HashMap
You can use LinkedHashMap which will store your keys in order of insertion.You can retrieve them by calling keySet().
LinkedHashMap