Example #1
0
 public synchronized boolean containsPerson(Person p) {
   return mySet.contains(p);
 }
Example #2
0
 public synchronized void addPerson(Person p) {
   mySet.add(p);
 }