Question: What happens when the input file is empty, What happens when the user searches for Smth and the entry in the file is for the

What happens when the input file is empty, What happens when the user searches for "Smth" and the entry in the file is for the name "Smith" What happens when the user types the command ' d ' to delete the current entry?

What does method nextLine() return? Write a description of the method index(String Key).

What happens when the input file is empty, What happens when theuser searches for "Smth" and the entry in the file is forthe name "Smith" What happens when the user types the command 'd ' to delete the current entry? What does method nextLine() return?

Appendix 1 Program for Part 1 import java.io.*; import java.util.*; class Contact ( public String name, number, note; public class ReddyPB ( public static Contact[l contactlist; public static int num_entries; public static Scanner stdin = new scanner(system.in); public static void main(Stringl] args) throws Exceptionf int i; char C; String code, Command; contact1st = new contact[1001

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!