Collection and Utility Classes

The java.util package contains a number of useful classes that support important functionality as part of the Java API. These classes provide basic utilities that you frequently end up either writing yourself or purchasing from a third party when you are working in other languages. The creators of Java tried to capture the best concepts from several programming languages, and the results of this are clearly seen in the collection and utility classes. This aspect of Java was in particular influenced by Smalltalk, which is a pure object-oriented language highly regarded for its abundance of utility classes.

This chapter walks you through the majority of the java.util classes with examples and guidelines on their uses. ...

Get Special Edition Using Java 2 Standard Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.