Chapter 22. Miscellaneous Utilities

 

The best way to make a fire with two sticks is to make sure one of them is a match.

 
 --Will Rogers

You will find several standard utility interfaces and classes in the java.util package. You have seen the collection classes already in Chapter 21. This chapter covers the remainder of the classes except those used for localization, which are in Chapter 24. The java.util classes covered in this chapter are

  • Formatter—. A class for producing formatted text.

  • BitSet—. A dynamically sized bit vector.

  • Observer/Observable—. An interface/class pair that enables an object to be Observable by having one or more Observer objects that are notified when something interesting happens in the Observable object.

  • Random—. A class to ...

Get THE Java™ Programming Language, Fourth 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.