PersonDemo1.java
1    /* 
2     * PersonDemo1 is a simple program to create and textually display Person 
3     * objects, together with initials and an indication of whether or not the 
4     * person is a baby boomer 
5     */
6    
7    package people;
8    
9    public class PersonDemo1 {
10   
11       public static void main(String[] args) {
12   
13           //create the six Person objects
14           Person ka = new Person("Keith Allen",11,22,2002);
15           Person dd= new Person("David Deacon",4,1,1962);
16           Person ds = new Person("Daniel Schlegel",7,14,1980);
17           Person gs= new Person("Giovanni Santiago",8,19,2002);
18           Person ja= new Person("Jenna Allen",12,25,2003);
19   
20           //display the six Person objects to the standard output stream
21           System.out.println(ka + " " + ka.initials() + " " + ka.isBoomer());
22           System.out.println(dd + " " + dd.initials() + " " + dd.isBoomer());
23           System.out.println(ds + " " + ds.initials() + " " + ds.isBoomer());
24           System.out.println(gs + " " + gs.initials() + " " + gs.isBoomer());
25           System.out.println(ja + " " + ja.initials() + " " + ja.isBoomer());
26       }
27   }
28