PersonDemo1.java
1    /* 
2     * PersonDemo1 is a simple program to create and textually display Person 
3     * objects. 
4     */
5    
6    package people;
7    
8    public class PersonDemo1 {
9    
10       public static void main(String[] args) {
11           Person bd = new Person("Bob Dylan",5,24,1941);
12           Person nr = new Person("Noomi Rapace",12,28,1974);
13           Person pf = new Person("Pharrell Williams",4,5,1973);
14           Person fs = new Person("Frank Sinatra",12,12,1915);
15           Person dk = new Person("Diana Krall",11,16,1964);
16           Person ks = new Person("Kyle Scalzo",3,7,2001);
17   
18           System.out.println(bd + " " + bd.initials() + " " + bd.isBoomer());
19           System.out.println(nr + " " + nr.initials() + " " + nr.isBoomer());
20           System.out.println(pf + " " + pf.initials() + " " + pf.isBoomer());
21           System.out.println(fs + " " + fs.initials() + " " + fs.isBoomer());
22           System.out.println(dk + " " + dk.initials() + " " + dk.isBoomer());
23           System.out.println(ks + " " + ks.initials() + " " + ks.isBoomer());
24       }
25   }
26