Summary
We have now discovered the collection framework, and it's time to have a look at what we have mastered.
The collection framework is set for high-performance classes to store and manipulate groups of objects. The framework provides a unified architecture to store and manipulate the elements of a collection and hide the actual implementation.
Several collections implicitly support ordering of elements and help us to sort elements without effort. We can also sort collections by providing a collection-compare function via a Comparator or an object-compare method via the Comparable interface.
The Iterable interface defines the common behavior of all the classes in a collection framework that supports a mechanism to iterate through all the elements ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access