code: static void Print(AddressBook addressBook) {
      for (Person person: addressBook.getPeopleList()) {
        System.out.println("Person ID: " + person.getId());
        System.out.println("  Name: " + person.getName());
        if (!person.getEmail().isEmpty()) {
          System.out.println("  E-mail address: " + person.getEmail());
        }
  
        for (Person.PhoneNumber phoneNumber : person.getPhonesList()) {
          switch (phoneNumber.getType()) {
            case MOBILE:
              System.out.print("  Mobile phone #: ");
              break;
            case HOME:
              System.out.print("  Home phone #: ");
              break;
            case WORK:
              System.out.print("  Work phone #: ");
              break;
          }
          System.out.println(phoneNumber.getNumber());
        }
      }
    }
docs: Iterates though all people in the AddressBook and prints info about them.