Murach's Java SE 6
How to validate input data
Invalid data is a common cause of the exceptions (errors) that occur when a Java program is run. So this chapter introduces you to handling those types of exceptions. It also shows you how to code methods that check input data for common errors, so you can prevent exceptions from occurring.
|
|
|
|
How exceptions work |
154 |
|
How to catch exceptions |
156 |
|
The Future Value application with exception
handling |
158 |
|
|
How to prevent exceptions from being
thrown |
160 |
|
How to validate a single entry |
162 |
|
How to use generic methods to validate
an entry |
164 |
|
|
The console |
166 |
|
The code |
168 |
|
 |
|
|
|
|
© Copyright 1998-2008 Mike
Murach & Associates, Inc. All rights reserved.
|
|
|