Person2Demo.java
1    package people;
2    
3    public class Person2Demo {
4    
5        public static void main(String[] args) {
6            Person[] personData = new Person[6];
7        Person bd = new Person("Bob Dylan", 5, 24, 1941);
8        Person nr = new Person("Noomi Rapace", 12, 28, 1974);
9        Person pr = new Person("Pharrell Williams", 3, 5, 1973);
10       Person fs = new Person("Frank Sinatra", 12, 12, 1915);
11       Person dk = new Person("Diana Krall",11, 16, 1964);
12       Person ew = new Person("Ezra Wingard",7, 16, 2001);
13       personData[0] = bd;
14       personData[1] = nr;
15       personData[2] = pr;
16       personData[3] = fs;
17       personData[4] = dk;
18       personData[5] = ew;
19       for (int i = 0; i < personData.length; i = i + 1){
20           System.out.println(personData[i]);
21       }
22       }
23   }
24