Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.stefanbahnson.adressbook;
- import static java.lang.System.out;
- /**
- * User can look up Persons in a list to get contact information.
- * Thay can not add or remove entries in the list, only sort and filter.
- *
- *
- * @author Stefan
- */
- public class AdressBook {
- public static void main(String[] args) {
- Database db = new Database();
- for (Person person : db.callDB()){
- out.println("Contact:\n" + person.getName() +
- "\n" + person.getEmail() + "\n");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement