1 /* 2 * PersonDemo1 is a simple program to create and textually display Person objects. 3 */ 4 5 package people; 6 7 public class PersonDemo1 { 8 9 public static void main (String [] args ) { 10 11 // create the six person objects 12 13 Person bd = new Person("Bob Dylan ", 5, 24, 1941); 14 Person nr = new Person("Noomi Rapace " , 12, 28, 1974); 15 Person ke = new Person("Kyra Edwards " ,2, 10, 2001); 16 Person jb = new Person("Jillian Byron " , 12, 20, 1984); 17 Person cb = new Person("Courtney Byron " , 5, 20, 1983); 18 Person de = new Person("Davidson Edwards ", 7, 20, 1972); 19 20 // display the six person objects to a standard output system 21 System.out.println(bd + " " +bd.initials() + " " + "isBabyBooomer: "+bd.isBoomer()); 22 System.out.println(nr + " " + nr.initials() + " " + "isBabyBoomer: " +nr.isBoomer()); 23 System.out.println(nr + " " + ke.initials() + " " + "isBabyBoomer: " +ke.isBoomer()); 24 System.out.println(nr + " " + jb.initials() + " " + "isBabyBoomer: " +jb.isBoomer()); 25 System.out.println(nr + " " + cb.initials() + " " + "isBabyBoomer: " +cb.isBoomer()); 26 System.out.println(nr + " " + de.initials() + " " + "isBabyBoomer: " +de.isBoomer()); 27 } 28 } 29