Java Reference
In-Depth Information
CHAPTER
4
D ecision M aking and R epetition
with R eusable O bjects
Objectives
You will have
mastered the material in
this chapter when you can:
• Design a program using methods
• Code a selection structure to make decisions in code
• Describe the use of the logical AND, OR, and NOT operators
• Define exceptions and exception handling
• Code a try statement and a catch statement to handle exceptions
• Create a user-defined method
• Code a repetition structure using the while statement
• Write a switch statement to test for multiple values in data
• Format numbers using a pattern and the format() method
• Construct a Color object
• Use a Checkbox and a CheckboxGroup in the user interface
Search WWH ::




Custom Search