Simple Phonebook

PhoneBook.java 460B

123456789101112131415161718192021222324252627282930
  1. import java.util.Scanner;
  2. import java.util.ArrayList;
  3. /**
  4. * Created by leon on 1/23/18.
  5. */
  6. public class PhoneBook {
  7. private String name;
  8. private String phoneNumber;
  9. public PhoneBook()
  10. {
  11. }
  12. public String add(String n, String number)
  13. {
  14. n = name;
  15. number = phoneNumber;
  16. return null;
  17. }
  18. public String lookUp(String n)
  19. {
  20. n = name;
  21. return null;
  22. }
  23. }