+1(805) 568 7317

create a java application with the following specifications part 1 1 user inputs the 5150704

Create a Java application with the following specifications:

Part 1:

1- user inputs the value of a 10-digit telephone number with the format: CCCXXX-XXXX where CCC is the area code and XXX-XXXX is the 7-digit phone number

2- the number must be 10 digits long (excluding the dashes (-))

3- display an error message if it is not 10 digits long

4- Please use Character and String manipulation and methods to determine if there are non-numeric characters in the input (excluding the dashes (-)).

5-Display an error message if non-numeric characters are found.

6-display an output showing the 3-digit area code only

7- display another output showing the 7-digit phone only

Part 2:

8-From the next text use only String and its methods (no arrays or collections) to separate and output each sentence into a new line.

“Not in a house. Not with a mouse. I would not eat them here or there. I would not eat them anywhere. I would not eat green eggs and ham.”

"Order a similar paper and get 15% discount on your first order with us
Use the following coupon

Order Now