1 package People; 2 3 public class PersonDemo2 { 4 public static void main(String[] args){ 5 Person[] people= new Person[6]; 6 people[0] = new Person("Matthew", "Olmeda",10, 21, 2001); 7 people[1] = new Person("Bob", "Dylan", 5, 24, 1941); 8 people[2] = new Person("Noomi", "Rapace", 12, 28, 1979); 9 people[3] = new Person("Pharrell", "Williams", 4, 5, 1973); 10 people[4] = new Person("Frank", "Sinatra", 12, 12, 1915); 11 people[5] = new Person("Diana", "Krall", 11, 16, 1964); 12 int x = -1; 13 while (x < people.length-1){ 14 x=x+1; 15 System.out.println(people[x].everything()); 16 } 17 } 18 } 19