PersonDemo2.java
1    package people;
2    
3    public class PersonDemo2 {
4    
5        public static void main(String[] args) {
6    
7            Person[] people = new Person[] {
8    
9                 new Person("Gregory Maldonado", 12, 24, 2000),
10                new Person("Noomi Rapace", 12, 28, 1974),
11                new Person("Pharell Williams", 4, 5, 1973),
12                new Person("Frank Sinatra", 12, 12, 1915),
13                new Person("Diana Krall", 11, 16, 1964)
14   
15           };
16                for (int i = 0; i < people.length; i++) {
17   
18                    people[i].ToString();
19   
20                }
21   
22       }
23   
24   
25   }
26