Question: Please this code doesn't work please could some one tell me why it a illegal start expression and how to fix it? on line 52?
Please this code doesn't work please could some one tell me why it a illegal start expression and how to fix it? on line 52?
//PhpohoneKeypadMapping.java
import java.util.Scanner; public class PhoneKeyPads { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); // Read the string from console System.out.println("Enter a phone number as a string"); String inputPhone = scanner.nextLine(); String phoneNumber = ""; int phoneDigit = 0; for (int i = 0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
