Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
This chapter has gone on quite long enough, and I hope that what has come so far has convinced you that the collections in Java are one of the good parts of the library. But before we go on to something else, I need to mention a couple of things.
The first can be seen if we look at the signature of a method we used in our last formatting examples, the addAll() method of TreeSet. Like all of the collections, TreeSet is generic, but this method is generic in a somewhat odd way, with a signature of: