Any help would be appreciated (Java).
1) Read in a phone number is the following format (no promptingnecessary).
Sample input:
111-222-3333
Use a String method to save the area code in a new String. Forexample: 111
Modify the new String by adding parentheses around the areacode. For example: (111)
Then display the new String, followed by a newline.
(111)
(2) Use a String method to remove the first four characters,through the first dash, from the original String.
Then display the revised original String, followed by anewline.
222-3333
(3) Pre-pend the new String to the original String.
Then display the resulting String, followed by a newline.
(111)222-3333
(4) Read in a city and state, all
PayPal Gateway not configured
PayPal Gateway not configured