PersonDemo1.java
1    
2            /* 
3             * PersonDemo1 is a simple program to create and textually display Peron objects, together with initials and an 
4             * indication of whether or not the person is a baby boomer. 
5             */
6    
7            package people;
8    
9    import people.Person;
10   
11   public class PersonDemo1 {
12   
13       public static void main(String[] args){
14   
15           // CREATE THE SIX PERSON OBJECTS
16           Person bd = new Person("Bob Dylan",5,24,1941);
17           Person nr = new Person("Noomi Rapace", 12,28,1974);
18           Person pw = new Person("Pharrell Williams", 9,15,2554);
19           Person fs = new Person("Frank Sinatra", 11,22,3344);
20           Person dk = new Person("Dianna Krall", 4,26,2241);
21           Person kf = new Person("Kuncheng Feng", 3,28, 5041);
22   
23           // DISPLAY THE SIX PERSON OBJECTS TO THE STANDARD OUTPUT STREAM.
24           System.out.println(bd + " " + bd.initials() + " " + bd.isBoomer());
25           System.out.println(nr + " " + nr.initials() + " " + nr.isBoomer());
26           System.out.println(pw + " " + pw.initials() + " " + pw.isBoomer());
27           System.out.println(fs + " " + fs.initials() + " " + fs.isBoomer());
28           System.out.println(dk + " " + dk.initials() + " " + dk.isBoomer());
29           System.out.println(kf + " " + kf.initials() + " " + kf.isBoomer());
30   
31       }
32   }
33