This section begins with a discussion of theNumberclass in thejava.langpackage, its subclasses, and the situations where you would use instantiations of these classes rather than the primitive number types.This section also presents the
PrintStreamandDecimalFormatclasses, which provide methods for writing formatted numerical output.Finally, the
Mathclass injava.langis discussed. It contains mathematical functions to complement the operators built into the language. This class has methods for the trigonometric functions, exponential functions, and so forth.