Section 16.5 Interface Collection and Class Collections
• Interfaces Set
and List
extend Collection
(p. 686), which contains operations for adding, clearing, comparing and retaining objects in a collection, and method iterator
(p. 691) to obtain a collection’s Iterator
(p. 687).
• Class Collections
(p. 688) provides static
methods for manipulating collections.
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.