fixed java example
diff --git a/examples/AddPerson.java b/examples/AddPerson.java
index ca5ac27..259cfb7 100644
--- a/examples/AddPerson.java
+++ b/examples/AddPerson.java
@@ -50,7 +50,7 @@
stdout.println("Unknown phone type. Using default.");
}
- person.addPhone(phoneNumber);
+ person.addPhones(phoneNumber);
}
return person.build();
@@ -80,7 +80,7 @@
}
// Add an address.
- addressBook.addPerson(
+ addressBook.addPersons(
PromptForAddress(new BufferedReader(new InputStreamReader(System.in)),
System.out));