This chapter introduced the reader to the Java collections framework and its three main interfaces: List, Set, and Map. Each of the interfaces was discussed and its methods demonstrated with one of the implementing classes. The generics were explained and demonstrated as well. The equals() and hashCode() methods have to be implemented in order for the object to be capable of being handled by Java collections correctly.
The Collections and CollectionUtils utility classes have many useful methods for collection handling and were presented in examples, along with Arrays, ArrayUtils, Objects, and ObjectUtils.
The class methods of the java.time package allow time/date values to be managed, class was demonstrated in specific practical code snippets.
In the next chapter, we will overview the Java Class Library and some external libraries, including those that support testing...