Question: write in java Homework: Reformat a Phone Number Let's get some practice working with Java Strings: an incredibly useful data type for working with text.

 write in java Homework: Reformat a Phone Number Let's get some
write in java

Homework: Reformat a Phone Number Let's get some practice working with Java Strings: an incredibly useful data type for working with text. Write a function called reformatPhoneNumber. It should take a String containing a phone number in the format 111-222-3333 and return it reformatted as (111) 222- 3333

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!