| Java Spring 2006 - HW4 FAQ |
|   Java Prog Home   |   HW4 Assignment |
+ SortedMap
|
Question: | For the JavaGrades class, we need to be able to sort using either the key (Student name), or the value (grade). We can use a SortedMap (like TreeMap), but this will only provide an ordering by name - how do we sort the map by value? |
|
Answer: |