Java Reference
In-Depth Information
5. Run the program again. When the Input dialog box displays, type 0 in
the text box. When the Error dialog box displays, click the OK button.
Click the Close button in the command prompt window title bar.
With each run, the Error dialog box displays an error message stating that
the data entered was not in the proper format (Figure 4-21).
alphabetic data
entered
negative number
entered
zero
entered
FIGURE 4-21
 
Search WWH ::




Custom Search