Package algs34
Class MyFB
java.lang.Object
algs34.MyFB
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic boolean
(package private) HashMap
<MyFB.Person, HashSet<MyFB.Person>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFriendship
(MyFB.Person p1, MyFB.Person p2) void
static void
static void
static MyFB.Person
makePerson
(String name, int age) static MyFB.Person
makePerson
(In in) boolean
queryFriendship
(MyFB.Person p1, MyFB.Person p2) void
removeFriendship
(MyFB.Person p1, MyFB.Person p2)
-
Field Details
-
DEBUG
-
map
-
-
Constructor Details
-
MyFB
public MyFB()
-
-
Method Details
-
makePerson
-
makePerson
-
main
-
addPerson
-
addFriendship
-
removeFriendship
-
queryFriendship
-
lookupFriends
-
main2
-