PersonDemo2.java
1    package people;
2    
3    public class PersonDemo2 {
4        public static void main(String[] args) {
5            // Create the six person objects
6            Person[] people = new Person[6];
7            people[0] = new Person("Bob Dylan",5,24,1941);
8            people[1] = new Person("Noomi Rapace",12,28,1974);
9            people[2] = new Person("Pharrell Williams",4,5,1973);//April 5, 1973
10           people[3] = new Person("Frank Sinatra",12,12,1915);//December 12, 1915
11           people[4] = new Person("Diana Krall",11,16,1964);//November 16, 1964
12           people[5] = new Person("Matthew Michaelis",1,18,2001);
13           // Display the six person objects to the standard output stream
14           for ( int x = 0; x < people.length; x++ ) {
15               System.out.println(people[x]);
16           }
17       }
18   }
19