Advertisement
eckrin

AdressBook

Sep 16th, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.58 KB | None | 0 0
  1. package com.stefanbahnson.adressbook;
  2.  
  3. import static java.lang.System.out;
  4.  
  5. /**
  6.  * User can look up Persons in a list to get contact information.
  7.  * Thay can not add or remove entries in the list, only sort and filter.
  8.  *
  9.  *
  10.  * @author Stefan
  11.  */
  12. public class AdressBook {
  13.     public static void main(String[] args) {
  14.        
  15.         Database db = new Database();
  16.        
  17.         for (Person person : db.callDB()){
  18.             out.println("Contact:\n" + person.getName() +
  19.                         "\n" + person.getEmail() + "\n");
  20.            
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement