package dawson111.labExercises;
import javax.swing.*;
public class TelephoneNumber
{
public static void main(
String[] args)
{
//variable declarations
String inputString;
int firstThree > 221; //Beginning of Range
int lastFour < 993; //End of Range
//Accept the required data
inputString =
JOptionPane.showInputDialog("Enter the first three digits:");
firstThree = Integer.parseInt(inputString);
inputString =
JOptionPane.showInputDialog("Enter the last four digits:");
lastFour = Integer.parseInt(inputString);
//Display the output
System.out.println("************** Telephone Number ****************");
System.out.println();
System.out.println("Telephone Number: (514)" + firstThree +"-"+ lastFour);
}//end main method
}//end Average class