Suppose we are given the name and division number for each employee in a company. There are
Fantastic news! We've Found the answer you've been seeking!
Question:
Suppose we are given the name and division number for each employee in a company. There are no duplicate names. We would like to store this information alphabetically, by name. For example, part of the input might be the following:
How should this be done? TreeMap? TreeSet? Comparable? Comparator? Develop a small unit-test to test your hypotheses.
Posted Date: