/home/mbilodea/NetBeansProjects/CS1/src/people/PersonDemo1.java
 1 /*
 2  * PersonDemo1 is a simple program to create and technically display Person
 3  * objects, together with initials and an indication of whether or not the
 4  * person is a baby boomer.
 5  */
 6 package people;
 7 
 8 /**
 9  *
10  * @author mbilodea
11  */
12 public class PersonDemo1 {
13 
14     /**
15      * @param args the command line arguments
16      */
17     public static void main(String[] args) {
18         
19         // CREATE THE SIX PERSON OBJECTS
20         Person bd = new Person("Bob Dylan",5,24,1941);
21         Person nr = new Person("Noomi Rapace",12,28,1974);
22         Person pw = new Person("Pharrel Williams",4,5,1973);
23         Person fs = new Person("Frank Sinatra",12,12,1915);
24         Person dk = new Person("Diana Krall",11,16,1964);
25         Person mb = new Person("Mathew Bilodeau",1,27,2000);
26         
27         // DISPLAY THE SIX PERSON OBJECTS TO THE STANDARD OUTPUT STREAM
28         System.out.println(bd + " " + bd.initials() + " " + bd.isBoomer());
29         System.out.println(nr + " " + nr.initials() + " " + nr.isBoomer());
30         System.out.println(pw + " " + pw.initials() + " " + pw.isBoomer());
31         System.out.println(fs + " " + fs.initials() + " " + fs.isBoomer());
32         System.out.println(dk + " " + dk.initials() + " " + dk.isBoomer());
33         System.out.println(mb + " " + mb.initials() + " " + mb.isBoomer());
34         
35     }  
36 }
37