CS1 Standard Demo Page

The following text was written to the standard output stream when the PersonDemo2< program was executed from IntelliJ.

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[] people = new Person[6];
        people[0] = new Person("Bob Dylan",5,24,1941 );
        people[1] = new Person("Noomi Rapace" ,12,28,1974);
        people[2] = new Person("Pharell Williams", 6, 25, 1980);
        people[3] =  new Person("Frank Sinatra", 8, 30,1967);
        people[4] = new Person("Diana Krall", 11, 27,1950);
        people[5] = new Person("Edima Ekanem", 3, 28 , 2001);

        //USE A FOR LOOP TO DISPLAY THE SIX PERSON OBJECTS IN THEIR TEXTUAL FORM
        for (int i = 0; i <= people.length - 1; i = i + 1) {
            System.out.println(people[i]);
        }
    }
}