private Contact makeContact ( String first , String last , String address1 , String address2 , String city , String state , String zip , ContactType contactType , String memo ) { Contact contact = new Contact ( ) ; contact . setId ( nextId ++ ) ; contact . setContactType ( contactType ) ; contact . setFirstName ( first ) ; contact . setLastName ( last ) ; contact . setMemo ( memo ) ; Address address = contact . getAddress ( ) ; address . setAddress1 ( address1 ) ; address . setAddress2 ( address2 ) ; address . setCity ( city ) ; address . setState ( state ) ; address . setZip ( zip ) ; contact . setTodoItems ( getTodoItemList ( ) ) ; return contact ; }
Make a Contact object with the given data .