Question: .JAVA CODE Given the following classes PhoneBookTest and Phone Book inside the same package of a project, answer questions 21-31, DO NOT modify skeleton public

 .JAVA CODE Given the following classes PhoneBookTest and Phone Book inside

.JAVA CODE

Given the following classes PhoneBookTest and Phone Book inside the same package of a project, answer questions 21-31, DO NOT modify skeleton public class PhoneBook public class PhoneBook Test{ // firstAvailableIndex keeps track of indexes used, private static final int COUNT = 2; // as there might be less data than max array size. private static final String[] NAMES = int firstAvailableIndex; {"Jack","Jill", "Joe", "Jacob", "Janet"); String owner; private static final int[] NUMBERS = String[] contacts; (111, 222,333, 444,555); //0.25, constructor no-arg public static void main(String[] args) { PhoneBook book = new PhoneBook( "John", COUNT); public PhoneBook ( String owner, int size) { //0.24, complete } //0.30 complete body of loop for(int i=0; i

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