|
@@ -14,11 +14,13 @@ public class PhoneBook {
|
14
|
14
|
TreeMap<String, String>entry = new TreeMap();
|
15
|
15
|
}
|
16
|
16
|
|
17
|
|
- public void setLookup(String name){
|
|
17
|
+
|
|
18
|
+ public void setAdd(String name, String number){
|
|
19
|
+
|
18
|
20
|
|
19
|
21
|
}
|
20
|
22
|
|
21
|
|
- public void setAdd(String name, String number){
|
|
23
|
+ public void setLookup(String name){
|
22
|
24
|
|
23
|
25
|
}
|
24
|
26
|
|
|
@@ -38,14 +40,15 @@ public class PhoneBook {
|
38
|
40
|
return null;
|
39
|
41
|
}
|
40
|
42
|
|
41
|
|
- public String getLookup(){
|
|
43
|
+ public String getAdd(){
|
42
|
44
|
return null;
|
43
|
45
|
}
|
44
|
46
|
|
45
|
|
- public String getAdd(){
|
|
47
|
+ public String getLookup(){
|
46
|
48
|
return null;
|
47
|
49
|
}
|
48
|
50
|
|
|
51
|
+
|
49
|
52
|
public String getRemove(){
|
50
|
53
|
return null;
|
51
|
54
|
}
|