Extensions to the standard library
The standard Java library is quite powerful, but some things take a long time to write using it or they are simply missing. There are a number of extensions to the standard library, and the most prominent libraries are Apache Commons (a collection of libraries) and Google Guava. They make it easier to use the standard API or extend it, for example, by adding new collections or implementations.
To begin with,Ă‚Â we will briefly go over the most relevant parts of these libraries, and later on we will see how they are used in practice.
Apache Commons
Apache Commons is a collection of open source libraries for Java, with the goal of creating reusable Java components. There are quite a few of them, including Apache Commons Lang, Apache Commons IO, Apache Commons Collections, and many others.
Commons Lang
Apache Commons Lang is a set of utility classes that extend the java.util
package and they make the life of a Java developer a lot easier by providing many little...