Five things you don’t know about the Java collections API — turn
Part 1
http://www.ibm.com/developerworks/cn/java/j-5things2.html
For many Java developers, the Java collections API is a much-needed alternative to standard Java arrays and all their shortcomings. There is nothing wrong with associating collections mainly with ArrayList, but for those who have the spirit of exploration, this is only the tip of the iceberg of collections.
Although map (and its common implementation HashMap) is very suitable for name value pairs or key value pairs, there is no reason to limit yourself to these familiar tools. You can use the appropriate API or even the appropriate collection to correct a lot of error prone code.
This is the second article in the five things series and the first of seven articles devoted to collections. The reason why I spend so much time discussing collections is because these collections are so important in Java programming. First, I'll discuss the fastest (but perhaps not the most common) way to do everything, such as moving the content in array to list. Then we'll delve into something less known, such as writing a custom collections class and extending the Java collections API.