1 package people; 2 3 public class PersonDemo2 { 4 public static void main(String [] args) { 5 6 // CREATE THE SIX PERSON OBJECTS 7 Person[] p = new Person[6]; 8 p[0] = new Person("Bob Dylan", 5, 24, 1941); 9 p[1] = new Person("Noomi Rapace", 12, 28, 1974); 10 p[2] = new Person("Pharrel Williams", 4, 5, 1973); 11 p[3] = new Person("Frank Sinatra", 12, 12, 1915); 12 p[4] = new Person("Diana Krall", 11, 16, 1964); 13 p[5] = new Person("Navya Amaratunga", 10, 25, 2000); 14 15 for (int i = 0; i < p.length; i=i+1) { 16 System.out.println(p[i] + " " + p[i].initials() + " " + p[i].isBoomer()); 17 } 18 19 } 20 } 21