16.16 Wrap-Up
This chapter introduced the Java collections framework. You learned the collection hierarchy and how to use the collections-framework interfaces to program with collections polymorphically. You used classes ArrayList
and LinkedList
, which both implement the List
interface. We presented Java’s built-in interfaces and classes for manipulating stacks and queues. You used several predefined methods for manipulating collections. You learned how to use the Set
interface and class HashSet
to manipulate an unordered collection of unique values. We continued our presentation of sets with the SortedSet
interface and class TreeSet
for manipulating a sorted collection of unique values. You then learned about Java’s interfaces and classes for ...
Get Java™ How To Program (Early Objects), Tenth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.