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.
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
Get step-by-step solutions from verified subject matter experts
