Pārlūkot izejas kodu

Update README.md

Nhu Nguyen 6 gadus atpakaļ
vecāks
revīzija
17803adc98
Revīzijas autora e-pasts nav piesaistīts nevienam kontam
1 mainītis faili ar 6 papildinājumiem un 2 dzēšanām
  1. 6
    2
      README.md

+ 6
- 2
README.md Parādīt failu

@@ -14,9 +14,13 @@ Your completed lab must be submitted via GitHub. Labs are not complete unless th
14 14
 
15 15
 ### Part I:
16 16
 
17
-Create a PhoneBook class that holds names and phone numbers in sorted order. You can use an associative data type (one which stores items as keys paired with values).
17
+Create a PhoneBook class that holds names and phone numbers. You can use an associative data type (one which stores items as keys paired with values).
18 18
 
19
-Your PhoneBook class should have a lookup() method which allows you to look up a person's phone number based on their name. PhoneBook should also have methods to add and remove entries, or to list all names or all entries (names an phone numbers).
19
+Your PhoneBook class should have the following method
20
+  * lookup(String name) -  allows you to look up a person's phone number based on their name
21
+  * add(String name, String phoneNumber) - add entry
22
+  * remove(String name) - remove entry
23
+  * display() - list all entries (names an phone numbers) in alphabetical order
20 24
 
21 25
 ### Part II:
22 26