Prints a message to the screen asking the user to enter a


Write a program ( Use Java Programme Language ) that does the following:

  • Prints a message to the screen asking the user to enter a ten digit phone number without any hyphens or spaces.
  • The user is expected to enter something like 6519625554
  • You should accept this entered phone number as a String using the Scanner class.
  • Then, print a message to screen saying:
  • You entered 651-962-5554.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Prints a message to the screen asking the user to enter a
Reference No:- TGS01682915

Now Priced at $30 (50% Discount)

Recommended (93%)

Rated (4.5/5)