Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 8. Collections > Some Last Thoughts

8.5. Some Last Thoughts

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:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial