subject

Phone numbers and pin codes can be easier to remember when you find words * that spell out the number on a standard phone pad. for example, instead of * remembering the combination 5282, you can just think of java. * this program contains a recursive method called enumeratewords that given a * number, yields all possible spellings.'
need to fill in the blanks

import java. util. scanner;

/**
converts a numeric pin to an equivalent word using the digit to
letter mapping on a standard telephone keypad.
*/
public class pinwordenumerator
{
public static void main(string[] args)
{
scanner scan = new scanner(system. in);
system. out. print("enter a pin number-> ");
string num = scan. nextline();
system. out. println();
system. out. printf("the keypad encodings for %s are: %n",num);
enumeratewords(num);
}

/**
a wrapper for a recursive method that enumerates all the
phone keypad encodings for a number.
@param n a string representing the number
*/
public static void enumeratewords(string n)
{
// implement a recursive method that generates
// all possible phone keypad encodings for a
// number. implement additional auxiliary methods
// if necessary.
}



}

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 07:30, kimhoss2
What are ways to switch windows in excel? check all that apply. on the status bar, click the windows button, and then click the file name. on the task bar, click to display the excel jump list, and then click the file name. on the view tab, in the window group, click switch windows, and then click the file name. on the review tab, in the viewing group, click files, and then click the file name.
Answers: 1
image
Computers and Technology, 24.06.2019 04:30, LouieHBK
Fall protection, confined space entry procedures, controlled noise levels, and protection from chemical hazards are some of the things that contribute to a safe and
Answers: 1
image
Computers and Technology, 24.06.2019 08:00, Maxxboogie
Can someone work out the answer as it comes up in one of my computer science exams and i don't understand the cryptovariables
Answers: 1
image
Computers and Technology, 24.06.2019 13:00, CarlosParker99
Think of a spreadsheet as a giant calculator spread of paper chart data collector
Answers: 2
You know the right answer?
Phone numbers and pin codes can be easier to remember when you find words * that spell out the numbe...

Questions in other subjects:

Konu
Mathematics, 22.11.2019 22:31
Konu
History, 22.11.2019 22:31