Previous | Next | Trail Map | Writing Global Programs | Locale-Sensitive Data


How to Format Numbers, Dates and Times, and Messages

The AroundTheWorld applet uses the JDK's 1.1 data formatters to format much of the data you see displayed in its window.

This.......is formatted with this class...
DateFormat(in the API reference documentation)
MessageFormat(in the API reference documentation)
DateFormat(in the API reference documentation)
NumberFormat(in the API reference documentation)
NumberFormat(in the API reference documentation)
NumberFormat(in the API reference documentation)

The Format Classes

NumberFormat, DateFormat, and MessageFormat are all descendents of the Format(in the API reference documentation) class. This section talks about the Format class heirarchy and discusses in general terms how the formatters work. It's followed by these sections about specific formatters:

How to Format Numbers

How to Format Dates and Times

How to Format Messages


Previous | Next | Trail Map | Writing Global Programs | Locale-Sensitive Data