OBJECTIVES
After studying this chapter, you will
Understand the role that data play in effective program design.
Be able to use all of Java's primitive types and their operators.
Appreciate the importance of information hiding.
Be able to use class constants and class methods.
Know how to use Java's Math and NumberFormat classes.
Be able to perform various kinds of data conversions.
OUTLINE
5.1
Introduction
5.2
Boolean Data and Operators
Are We Computers?
5.3
Numeric Data and Operators
5.4
From the Java Library: java.lang.Math
5.5
Numeric Processing Examples
5.6
From the Java Library: java.text.NumberFormat
5.7
Character Data and Operators
5.8
Example: Character Conversions
5.9
Problem Solving = Representation + Action
Chapter Summary
Solutions to Self-Study Exercises
Exercises