public Contact getContactFromID(int id) {
        Iterator contactIterator = allContacts.iterator();
        Contact nextContact;
        while(contactIterator.hasNext()) {
            nextContact = (Contact) contactIterator.next();
            if(nextContact.getId() == id) {
                return nextContact;
            }
        }
        return null;
    }