O'Reilly logo

THE Java™ Programming Language, Fourth Edition by James Gosling, Ken Arnold, David Holmes

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required