PersonDemo1.java
1    /* 
2    * PersonDemo1 is a simple program to create and textually display Person objects 
3     */
4    
5    package people;
6    
7    public class PersonDemo1 {
8        public static void main(String[] args) {
9            //Create the six person objects
10           Person bd= new Person("Bob Dylan", 5, 24, 1941);
11           Person nr= new Person("Noomi Rapace", 12, 28, 1974);
12           Person pw= new Person("Pharrell Williams", 11, 14, 1973 );
13           Person fs= new Person("Frank Sinatra", 9, 5, 1971 );
14           Person dk= new Person("Diana Krall", 3, 25, 1965 );
15           Person dpk= new Person("Durga Khanal", 11, 23, 1993);
16   
17           // Display the six person objects to the standard output stream
18           System.out.println(bd+" "+ bd.initials()+ " " + bd.isBoomer());
19           System.out.println(nr+ " "+ nr.initials()+ " "+ nr.isBoomer());
20           System.out.println(pw+ " "+ pw.initials()+ " "+ pw.isBoomer() );
21           System.out.println(fs + " "+ fs.initials()+ " "+ fs.isBoomer());
22           System.out.println(dk + " "+ dk.initials()+ " "+ dk.isBoomer());
23           System.out.println(dpk + " "+dpk.initials()+ " "+ dpk.isBoomer());
24       }
25   
26   }
27