Question: Given the following code, the output is _ _ . String str = 7 1 4 - 4 8 4 - 7 2 1

Given the following code, the output is __.
String str ="714-484-7211714-484-7212714-484-7213"; System.out.print( str.replaceFirst("714-","(714)"));

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 Programming Questions!