PersonDemo2.java
/* 
 * A program that create an array of person objects of size 6 and fill it with the data. 
 * Then use a for loop to display the six person objects in their textual form. 
 */

package people;

public class PersonDemo2 {

    public static void main(String[] args){
        // Create an array of person objects of size 6 and fill it with the data
        Person person[] = new Person[6];
        person[0] = new Person("Bob Dylan" ,5,24,1941);
        person[1] = new Person("Noomi Rapace", 12,28,1974);
        person[2] = new Person("Pharrell Williams", 9,15,2554);
        person[3] = new Person("Frank Sinatra", 11,22,3344);
        person[4] = new Person("Dianna Krall", 4,26,2241);
        person[5] = new Person("Kuncheng Feng", 3,28, 5041);

        // DISPLAY THE SIX PERSON OBJECTS TO THE STANDARD OUTPUT STREAM.
        for (int i = 0; i <= 5; i++) {
            System.out.println(person[i] + " " + person[i].initials() + " " + person[i].isBoomer());
        }
    }
}