Person1Demo.java
1    /* 
2     * Person1Demo is a simple program to create and textually display Person 
3     * objects. 
4     */
5    
6    package people;
7    
8    public class Person1Demo {
9    
10       public static void main(String[] args) {
11   
12           //CREATE THE SIX PERSON OBJECTS
13           Person bd = new Person("Bob Dylan", 5, 24, 1941);
14           Person nr = new Person("Noomi Rapace", 12, 28, 1974);
15           Person pr = new Person("Pharrell Williams", 3, 5, 1973);
16           Person fs = new Person("Frank Sinatra", 12, 12, 1915);
17           Person dk = new Person("Diana Krall",11, 16, 1964);
18           Person ew = new Person("Ezra Wingard",7, 16, 2001);
19   
20           //DISPLAY THE SIX PERSON OBJECTS TO THE STANDARD OUTPUT STREAM
21           System.out.println(bd + " " + bd.initials() + " " + bd.isBoomer());
22           System.out.println(nr + " " + nr.initials() + " " + nr.isBoomer());
23           System.out.println(pr + " " + pr.initials() + " " + pr.isBoomer());
24           System.out.println(fs + " " + fs.initials() + " " + fs.isBoomer());
25           System.out.println(dk + " " + dk.initials() + " " + dk.isBoomer());
26           System.out.println(ew + " " + ew.initials() + " " + ew.isBoomer());
27       }
28   
29   
30   }
31