Question: starter code no scanner mehtod and explain how the code will work to produce the output Create a function named textToNum that receives a single
starter code Create a function named textToNum that receives a single Phone Number (a String) as a parameter, then returns a copy of that String with all of the letters converted to numbers. Header: String textToNum( String phoneNumber) // Type code here The table below depicts which number each letter corresponds to. Example input/Output: - Input '723-647enes Output: "123-647-3937" - input 325-444-TEST Output: "325-444-8378" Output: "(653)879-8447" Notes: - Assume each letter wit be Uppercane - You may want to use the Characterisletter and/or Character isbigit methods Online Java Compiler IDE For Multiple Files, Custom Library and File Read/Write, use our new - Advanced Java IDE
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
