Get values & keySet from an embedded HashMap
I have a HashMap with a keyset of Strings and an ArrayList of integer values, the integer values can not be sorted.
I am required to produce a collection of similar HashMaps using the name of each as a new keyset and the object as the value - I have chosen a treeset so that the names can be sorted automatically.
My problem is simply how do I dig down to get the HashMap keylist and values from the Object stored in the TreeMap referenced by A below? :smash:
Set<String> a = A.keySet();
Object obj = A.values(); //Is this correct?
I now want to get at the keySet() and values in the HashMap referenced by obj