Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Although ArrayList is the one you’ll use most often, there are others for special occasions. Some of the key collection classes include:
Don’t worry about trying to learn these other ones right now. We’ll go into more details a little later.
TreeSet
Keeps the elements sorted and prevents duplicates.
HashMap
Lets you store and access elements as name/value pairs.
LinkedList
Makes it easy to create structures like stacks or queues.
HashSet
Prevents duplicates in the collection, and given an element, can find that element in the collection quickly.
LinkedHashMap
Like a regular HashMap, except it can remember the order in which elements (name/value pairs) were inserted, or it can be configured to remember the order in which elements were last accessed.