}  Enumeration en = redundantEntries.elements(); while (en.hasMoreElements()) { Person p = (Person) en.nextElement(); deleteEntry(p);
Iterator iterator = redundantEntries.iterator(); while (iterator.hasNext()) { Person p = (Person) iterator.next(); deleteEntry(p); }
	public int deleteDuplicateEntries() {		Vector redundantEntries = new Vector();				Enumeration enOuter = unfilteredPersons.elements();		while (enOuter.hasMoreElements()) {			Person currentOuter = (Person) enOuter.nextElement();						Enumeration enInner = unfilteredPersons.elements();			while (enInner.hasMoreElements()) {				Person currentInner = (Person) enInner.nextElement();				if (currentOuter != currentInner && currentOuter.supersedes(currentInner))					redundantEntries.add(currentInner);			}		}				Enumeration en = redundantEntries.elements();		while (en.hasMoreElements()) {			Person p = (Person) en.nextElement();			deleteEntry(p);		}				if (redundantEntries.size() > 0) {			saveToXMLFile(JFritz.PHONEBOOK_FILE);			updateFilter();		}				return redundantEntries.size();	}