PersonDemo1.java
1    
2    ///This is a simple program to create and textually display Person objects
3    
4    package people;
5    
6    public class PersonDemo1 {
7        public static void main(String[] args){
8            //Create The Six Person Objects
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("Pharrell Williams", 5,5,1973);
12           Person fs = new Person("Frank Sinatra", 12,12,1915);
13           Person dk = new Person("Diana Krall", 11,16,1964);
14           Person rf = new Person("Ray Fisher", 2,15,2000);
15   
16           //Display The Siz Person Objects To The Standard Output Stream
17           System.out.println(bd + " " + bd.initials() + " " + bd.isBoomer());
18           System.out.println(nr + " " + nr.initials() + " " + nr.isBoomer());
19           System.out.println(pw + " " + pw.initials() + " " + pw.isBoomer());
20           System.out.println(fs + " " + fs.initials() + " " + fs.isBoomer());
21           System.out.println(dk + " " + dk.initials() + " " + dk.isBoomer());
22           System.out.println(rf + " " + rf.initials() + " " + rf.isBoomer());
23       }
24   }
25