PersonDemo1.java
1    /* 
2        PersonDemo1 is a simple program to test, create and textually display Person objects, 
3        together with initials and an indication of whether or not the person is a baby boomer 
4     */
5    
6    package people;
7    
8    public class PersonDemo1 {
9    
10       public static void main(String [] args) {
11           //CREATE THE SIX PERSON OBJECTS
12           Person BD = new Person("Bob Dylan", 5, 24, 1941);
13           Person NR = new Person("Noomi Rapace" , 12,28,1974);
14           Person PW = new Person("Pharrell Williams", 3, 22, 1978);
15           Person FS = new Person("Frank Sinatra", 12, 12, 1915);
16           Person DK =  new Person("Diana Krall", 7, 12, 1960);
17           Person JC = new Person("Justin Castronovo", 4,24,1999);
18   
19           //DISPLAY THE SIX PERSON OBJECTS TO THE STANDARD OUTPUT STREAM
20           System.out.println(BD + " " + BD.initials() + " " + BD.isBoomer());
21           System.out.println(NR + " " + NR.initials() + " " + BD.isBoomer());
22           System.out.println(PW + " " + PW.initials() + " " + BD.isBoomer());
23           System.out.println(FS + " " + FS.initials() + " " + FS.isBoomer());
24           System.out.println(DK + " " + DK.initials() + " " + DK.isBoomer());
25           System.out.println(JC + " " + JC.initials() + " " + JC.isBoomer());
26   
27       }
28   }
29