aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/ListPeople.java
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ListPeople.java')
-rw-r--r--examples/ListPeople.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ListPeople.java b/examples/ListPeople.java
index 0294fb7a..78924305 100644
--- a/examples/ListPeople.java
+++ b/examples/ListPeople.java
@@ -9,7 +9,7 @@ import java.io.PrintStream;
class ListPeople {
// Iterates though all people in the AddressBook and prints info about them.
static void Print(AddressBook addressBook) {
- for (Person person: addressBook.getPersonsList()) {
+ for (Person person: addressBook.getPeopleList()) {
System.out.println("Person ID: " + person.getId());
System.out.println(" Name: " + person.getName());
if (!person.getEmail().isEmpty()) {