1 package people; 2 3 import java.lang.reflect.Array; 4 5 public class PersonDemo2 { 6 7 public static void main(String[] args) { 8 9 // create an array of person objects of size 6 and fill it with the data 10 Person[] people = new Person[6]; 11 people[0] = new Person("Kyra Edwards", 2, 10, 2001); 12 people[1] = new Person("Bob Dylan", 5, 24, 1941); 13 people[2] = new Person("Noomi Repace ", 12, 28, 1974); 14 people[3] = new Person("Jillian Byron ", 12, 20, 1984); 15 people[4] = new Person("Courtney Byron", 5, 20, 1983); 16 people[5] = new Person("Davidson Edwards", 7, 20, 1972); 17 18 // Use a for loop to display the six person objects in their textual form 19 for (int i = 0; i < people.length; i++) { 20 System.out.println(people[i]); 21 } 22 } 23 }