Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need 13.3 and 13.4 done to this code. My code below: import java.io.*; import java.util.ArrayList; /** * Lets you enter number and will give

image text in transcribedI need 13.3 and 13.4 done to this code. My code below: import java.io.*; import java.util.ArrayList; /** * Lets you enter number and will give you the following alphabetical return */ public class phoneNumber { static final String codes[] ={" ", " ", "abc", "def", "ghi", "jkl", "mno", "pqr", "stu", "vmx", "yz" }; public static ArrayList printwords(String str){ if(str.length() == 0) { ArrayList res1 = new ArrayList(); res1.add(""); return res1; } char ch = str.charAt(0); String restStr = str.substring(1); ArrayList prevres = printwords(restStr); ArrayList Res = new ArrayList(); String code = codes[ch - '0']; for(String val : prevres){ for(int i =0; i   P13.3 Continue Exercise  P13.2, checking the words against the /usr/share/dict/words file on your computer, or the words.txt file in the companion code for this book. For a given number, return only actual words. ... P13.4 With a longer number, you may need more than one word to remember it on a phone pad. For example, 263-346- 5282 is CODE IN JAVA. Using your work from Exercise .. P13.3, write a program that, given any number, lists all word sequences that spell the number on a phone pad. in java plz explain   P13.3 Continue Exercise  P13.2, checking the words against the /usr/share/dict/words file on your computer, or the words.txt file in the companion code for this book. For a given number, return only actual words. ... P13.4 With a longer number, you may need more than one word to remember it on a phone pad. For example, 263-346- 5282 is CODE IN JAVA. Using your work from Exercise .. P13.3, write a program that, given any number, lists all word sequences that spell the number on a phone pad. in java plz explain

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional IPhone And IPad Database Application Programming

Authors: Patrick Alessi

1st Edition

0470636173, 978-0470636176

More Books

Students also viewed these Databases questions

Question

x-3+1, x23 Let f(x) = -*+3, * Answered: 1 week ago

Answered: 1 week ago

Question

=+j Describe the various support services delivered by IHR.

Answered: 1 week ago

Question

=+j Explain IHRMs role in global HR research.

Answered: 1 week ago