The Collections Framework
This is a series of tutorials aimed at introducing the collections framework. There are quite a few tutorials because the collections framework is extensive, and powerful. If you are new to them, start at the beginning and work your way through, but you can of course jump all around.
Storing Data Using the Collections Framework
Why Choosing a Collection over an Array?
Getting to Know the Collection Hierarchy
Getting to Know the Collection Hierarchy.
Storing Elements in a Collection
Using a Collection to Store and Retrieve Elements
Iterating over the Elements of a Collection
Iterating over the Content of a Collection.
Extending Collection with List
Exploring the List Interface.
Extending Collection with Set, SortedSet and NavigableSet
Exploring the Set Interface.
Creating and Processing Data with the Collections Factory Methods
Creating Immutable Collections.
Storing Elements in Stacks and Queues
Finding Your Way in the Queue Hierarchy.
Using Maps to Store Key Value Pairs
Introducing the Map Hierarchy.
Managing the Content of a Map
Using a Map to Handle Key-Value Pairs.
Handling Map Values with Lambda Expressions
Handling the Values Stored in a Map.
Keeping Keys Sorted with SortedMap and NavigableMap
Using a Sortedmap to Sort Key-Value Pairs.
Choosing Immutable Types for Your Key
Avoiding the Use of Mutable Keys.