// Update the address of the contact.
contact.setAddress("123 New Street, New York, NY, 10011");
// Update the contact on the server.
Contact[] contacts = contactService.updateContacts(new Contact[] {contact});
for (Contact updatedContact : contacts) {
System.out.printf(
"Contact with ID \"%d\", name \"%s\", and address \"%s\" was updated.\n",
updatedContact.getId(), updatedContact.getName(), updatedContact.getAddress());