1 package people; 2 //This Program is like the last one but using Arrays and a for loop... It still includes Homo Sapiens... 3 //Suggestion next time it should be cats... 4 public class PersonDemo2 { 5 public static void main(String[] args) { 6 Person[] objects = new Person[6]; 7 Person zero = new Person("Jasmin Hills",9,24,1951); 8 Person one = new Person("Ema Callaghan",5,24,1977); 9 Person two = new Person("Shirley Sloan",5,20,1924); 10 Person three = new Person("John Nap",4,18,1963); 11 Person four = new Person("Charlene Owen",12,10,1965); 12 Person five = new Person("Kirsten Donovan",8,15,2002); 13 objects[0] = zero; 14 objects[1] = one; 15 objects[2] = two; 16 objects[3] = three; 17 objects[4] = four; 18 objects[5] = five; 19 for (Person object : objects) { 20 System.out.println(object + " " + object.initials() + " " + object.isBoomer()); 21 } 22 } 23 24 } 25