PersonDemo1.java
1    /* 
2     * PersonDemo1 is a simple program to create and textually display Person 
3     * objects. 
4     */
5    package people;
6    public class PersonDemo1 {
7        public static void main(String[] args) {
8    
9            Person bd = new Person("Bob Dylan",5,24,1941);
10           Person nr = new Person("Noomi Rapace",12,28,1974);
11           Person pw = new Person ( "Pharrel Williams", 1,6,1985);
12           Person fr = new Person ( "Frank Sinatra", 2,20,1940);
13           Person dk = new Person ( "Diana Krall", 9,18,1997);
14           Person as = new Person ( "Erica Daquin", 6,30,2003);
15   
16           System.out.println(bd + " " + bd.initials() + " " + bd.isBoomer());
17           System.out.println(nr + " " + nr.initials() + " " + nr.isBoomer());
18           System.out.println(pw + " " + pw.initials() + " " + pw.isBoomer());
19           System.out.println(fr + " " + fr.initials() + " " + fr.isBoomer());
20           System.out.println(dk + " " + dk.initials() + " " + dk.isBoomer());
21           System.out.println(as + " " + as.initials() + " " + as.isBoomer());
22   
23   
24   
25       }
26   }
27