Murach's Beginning Java 2, JDK 5
How to work with data
This chapter builds on what you learned in chapter 2 to teach you
more about handling data in your Java programs. That includes working
with all 8 primitive data types, casting data from one type to another,
and formatting data for output.
|
|
|
|
The eight primitive data types |
92 |
|
How to initialize variables |
94 |
|
How to initialize constants |
94 |
|
How to code assignment statements and
arithmetic expressions |
96 |
|
How to use the shortcut assignment operators |
98 |
|
How to work with the order of precedence |
100 |
|
How to work with casting |
102 |
|
|
How to use the NumberFormat class |
104 |
|
How to use the Math class |
106 |
|
How to use the Integer and Double classes |
108 |
|
|
The code for the application |
110 |
|
How to analyze the data problems in
the Invoice application |
112 |
|
|
The constructors and methods of the
BigDecimal class |
114 |
|
How to use BigDecimal arithmetic in
the Invoice application |
116 |
|
 |
|
|
|
|
© Copyright 1998-2008 Mike
Murach & Associates, Inc. All rights reserved.
|