7.3: Commonly-Used Classes
Read section 10.2. In an class hierarchy, a base class is more generic than a class that implements it. In particular, functions or methods of a base class are more generic functions. While generality is desirable, it may be a trade-off with efficiency for certain problems. This section looks at several classes in the class hierarchy for lists and for sets, and the additional features implemented in the subclasses that make them more efficient depending on the problem to be solved.
In this activity, you will construct a basic Java application that contains a TreeSet object. You will also add items to this Treeset.
This activity provides an exercise to enable you to create a basic java application containing a HashSet object.