Given the code fragment:
public class Foo {
public static void main (String [ ] args) {
Map
unsortMap.put (10, "z");
unsortMap.put (5, "b");
unsortMap.put (1, "d");
unsortMap.put (7, "e");
unsortMap.put (50, "j");
Map
Comparator
@Override public int compare (Integer o1, Integer o2) {return o2.compareTo
(o1); } } );
treeMap.putAll (unsortMap);
for (Map.Entry
System.out.print (entry.getValue () + " ");
}
}
}
What is the result?