Java Programming.
Code an interface Directory in order to handle entries in amember telephone directory. With this operations requirements:
1) Being able to create new entries to the directory. All theentry should be inserted in alphabetical order based on surenameinstead of added at the end and then sorted).
2) Able to remove entries from the directory (by number orname)
3) A lookup method that will help to search the extension no. ofa member of staff given his/her name. Create it as efficient aspossible.
4) Manipulate someone’s phone number.
5) Print the telephone directory.
Answer