package people; public class PersonDemo2 { public static void main(String[] args) { //Create AN Array of Person objs of size 6 and fill it with the data Person[] person = new Person[6]; person[0] = new Person("Bob Dylan", 5, 24, 1941); person[1] = new Person("Noomi Rapace", 12, 28, 1979); person[2] = new Person("pharrell Williams", 4, 15, 1973); person[3] = new Person("Frank Siantra", 12, 12, 1915); person[4] = new Person("Diana Krall", 11, 16, 1964); person[5] = new Person("San Youn", 5, 5, 1996); //Use a FOR loop to display the six person objs in their textual form for (int i = 0; i < person.length; i = i + 1) { System.out.println(person[i]); // because of String[] args in main method parameter, // automatically it is retrieved a String fn in person class // Coincidently, there is the one and only one fn remains to represent person class better // the fn who including the most kinds of parameters can become the one. } } }