|
Textbook, page
123/124:
Programming
projects: 2.4, 2.6, 2.8, 2.13 (optional)
Hint:
Use JOptionPane to read the values from the keyboard:
String
message = "Your message...";
String valueStr =
JOptionPane.showInputDialog(null, message);
int value = Integer.parseInt(valueStr);
Use
System.exit(); at the end of the program (as
shown in class).
|