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<
If the ordering is to mean anything significant, you could consider using a SortedMap.
Concrete implementation: TreeMap
TreeMap