Question: Java Write a program that has two parallel arrays of String objects. One of the arrays should hold people's names and the other should hold
Java
Write a program that has two parallel arrays of String objects. One of the arrays should hold people's names and the other should hold their phone numbers. Here are your sample contents of both arrays:
name Array Contents phone Array Contents
"Harrison, Rose" "555-2234"
"James, Jean" "555-9098"
"Johnson, Erica" "555-3485"
"Smith, William" "555-1785"
"Smith, Brad" "555-9224"
The program needs to ask the user to enter a name or the first few characters of a name in search for the array. It should then display all of the names that match the user's input and their corresponding phone #'s. For example, if the user entered "Smith", the program should display the following names and phone #'s from the list:
Smith, William: 555-1785
Smith, Brad: 555-9224
*You must create two classes. One should hold all the methods, and the second gets the methods from the first class class and uses it into the demo/test file.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
