Java Reference
In-Depth Information
2.1
Screen Output
58
58
System.out.println
2
Formatting Output with
61
printf
★
Money Formats Using
67
NumberFormat
Importing Packages and Classes
70
★
The
Class
72
DecimalFormat
2.2
Console Input Using the
Class
76
Scanner
The
Class
76
Scanner
The Empty String
84
Console Input
and Output
Example: Self-Service Check Out
86
Other Input Delimiters
86
Chapter Summary
89
Answers to Self-Test Exercises
89
Programming Projects
91