PersonDemo2.java
1    /* 
2     a program to create and textually display Person objects, together with initials 
3     and an indication of whether or not the person is a baby boomer. 
4     */
5    
6    package people;
7    
8    public class PersonDemo2 {
9        public static void main(String[] args) {
10           Person[] people = new Person[6];
11           people[0] = new Person("Bob Dylan",5,24,1941);
12           people[1] = new Person("Noomi Rapace",12,28,1974);
13           people[2] = new Person("Pharrell Williams",4,5,1973);
14           people[3] = new Person("Frank Sinatra",12,12,1915);
15           people[4] = new Person("Diana Krall",11,16,1964);
16           people[5] = new Person("Maddie Bauso",4,3,2001);
17   
18           for (int i = 0; i < people.length; i = i + 1){
19               System.out.println(people[i] + " " + people[i].initials() + " " + people[i].isBoomer());
20           }
21       }
22   }