CS1 Standard Demo Page

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

package people;

 /**
  *
  * @author ecuevas
  */
 public class PersonDemo2 {
 
     /**
      * @param args the command line arguments
      */
     public static void main(String[] args) {
         
         // CREATING AN ARRAY AND FILLING IT
         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("Pharrell Williams", 4, 5, 1973);
         people [3] = new Person("Frank Sinatra", 12, 12, 1915);
         people [4] = new Person("Diana Krall",11, 16, 1964);
         people [5] = new Person("Eric Cuevas", 7, 11, 2000);
         
         // USING A LOOP TO DISPLAY THE SIX PERSON OBJECTS IN TEXTUAL FORM
         for (int i = 0; i < people.length; i++) {
             System.out.println(people[i] + " " + people[i].initials() + " " + people[i].isBoomer());
         }
         
     }
     
 }