persons.add(newPerson);
boolean found = false; Enumeration en = persons.elements(); while (en.hasMoreElements()) { Person p = (Person) en.nextElement(); if (p.getStandardTelephoneNumber().getNumber().equals( newPerson.getStandardTelephoneNumber().getNumber())) { found = true; break; } } if (!found) { persons.add(newPerson); }
	public void addEntry(Person newPerson) {		persons.add(newPerson);	}