-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDebugTen3.java
More file actions
17 lines (17 loc) · 503 Bytes
/
DebugTen3.java
File metadata and controls
17 lines (17 loc) · 503 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// A PhoneBook is a Book with a city
import javax.swing.*;
public class DebugTen3
{
public static void main(String[] args)
{
String area, inStr;
int pages;
area = JOptionPane.showInputDialog(null,
"Enter city for phone book");
inStr = JOptionPane.showInputDialog(null,
"Enter number of pages in " + area + "'s phone book");
pages = Integer.parseInt(inStr);
DebugPhoneBook pb = new DebugPhoneBook();
pb.display();
}
}