The classes that we will be discussing in this chapter allow us to create, initialize, and modify objects of Java collections and arrays. They also allow the creation of unmodifiable and immutable collections. Some of these classes belong to Java standard libraries, others to popular Apache Commons libraries. Knowledge of these classes and familiarity with their methods are essential for any Java programmer.
We will cover the following areas of functionality:
- Managing collections
- Managing arrays
The list of the overviewed classes includes:
- java.util.Collections
- org.apache.commons.collections4.CollectionUtils
- java.util.Arrays
- org.apache.commons.lang3.ArrayUtils