1 package people; 2 3 public class PersonDemo2 { 4 public static void main(String[] args){ 5 //CREATE AN ARRAY OF PERSON OBJECTS OF SIZE 6 AND FILL IT WITH DATA 6 Person[] peopleArray = new Person[6]; 7 peopleArray[0] = new Person("Bob Dylan", 5,24,1941); 8 peopleArray[1] = new Person("Noomi Rapace", 12,28,1979); 9 peopleArray[2] = new Person("Pharell Williams", 4,5,1973); 10 peopleArray[3] = new Person("Frank Sinatra", 12,15,1915); 11 peopleArray[4] = new Person("Diana Krall", 11,16,1964); 12 peopleArray[5] = new Person("John Franklin", 2,8,2001); 13 //USE A FOR LOOP TO DISPLAY THE SIX PERSON OBJECTS IN THEIR TEXTUAL FORM 14 for(int x = 0; x <= peopleArray.length; x = x+1){ 15 System.out.println(peopleArray[x]); 16 } 17 18 19 20 }} 21