/home/ssingh6/NetBeansProjects/CS1/src/people/PersonDemo2.java
 1 /*
 2  * To change this license header, choose License Headers in Project Properties.
 3  * To change this template file, choose Tools | Templates
 4  * and open the template in the editor.
 5  */
 6 package people;
 7 
 8 /**
 9  *
10  * @author ssingh6
11  */
12 public class PersonDemo2 {
13 
14     /**
15      * @param args the command line arguments
16      */
17     public static void main(String[] args) {
18           Person people[] = new Person[6];
19          people[0] = new Person("Bob Dylan",5,24,1941);
20          people[1] = new Person("Noomi Rapace",12,28,1974);
21         people[2] = new Person("Pharrell Williams",4,5,1973);
22          people[3] = new Person("Frank Sinatra",12,12,1915);
23         people[4] = new Person("Diana Krall",11,16,1964);
24          people[5] = new Person("SoorajSanjayPratap Singh",11,12,1999);
25         
26         // USE A FOR LOOP TO DISPLAY THE SIX PERSON OBJECTS IN THEIR TEXTUAL FORM
27         for (int i = 0; i < 6; i++) {
28             System.out.println(people[i]+" "+people[i].initials()+" "+people[i].isBoomer());
29         }
30    }
31      
32 }
33