O'Reilly logo

Java Gently, Third Edition by Judith Bishop

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

Formatting

7.1 Strings and string handling

7.2 Tokenizers and envelopes

7.3 Inside the Stream class

7.4 Formatting numbers

7.5 Dates, calendars and time

In this chapter we consider the various ways that Java provides for formatting text, both internally and externally. Initially, Java did not have much in this regard, but Java 2 has extensive facilities for handling data in a manner that is locale-dependent. This means that programs can present themselves in the most appropriate style for the country in which they run. In many ways, such presentation details could be regarded as not essential in a first course, but we give them here to show ...

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