private int modifyAllContacts(Iterator<String> contactsIter){
  int totalContactsModified=0;
  while (contactsIter.hasNext())   totalContactsModified+=modifyContact(contactsIter.next(),contactsIter.next());
  return totalContactsModified;
}

private int modifyAllContacts ( Iterator < String > contactsIter ) { int totalContactsModified = 0 ; while ( contactsIter . hasNext ( ) ) totalContactsModified += modifyContact ( contactsIter . next ( ) , contactsIter . next ( ) ) ; return totalContactsModified ; }
synchronously modify all contacts designated by the iterator .
