Write a program that has two parallel arrays of String objects. One of the arrays should hold
Question:
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 example contents of both arrays:
The program should ask the user to enter a name or the first few characters of a name to search for in the array. The program should display all of the names that match the user’s input and their corresponding phone numbers. For example, if the user enters “Smith”, the program should display the following names and phone numbers from the list:
Smith, William: 555-1785
Smith, Brad: 555-9224
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Starting Out With Java From Control Structures Through Data Structures
ISBN: 9780133957051
6th Edition
Authors: Tony Gaddis
Question Posted: