1 /* 2 * PersonDemo1 is a simple program to create and textually display Person 3 * objects, together with initials and an indication of whether or not the 4 * person is a baby boomer. 5 */ 6 7 package people; 8 9 public class PersonDemo1 { 10 public static void main(String[] args){ 11 Person bd = new Person("Bob Dylan",5,24,1941); 12 Person nr = new Person("Noomi Rapace", 12,28,1974); 13 Person pw = new Person("Pharrel Williams",1,2,1988); 14 Person fs = new Person("Frank Sinatra",5,8,1964); 15 Person dk = new Person("Diana Krall",8,8,1982); 16 Person kka = new Person("KoKo Aung",8,5,2001); 17 18 //Display the six person objects to standard output stream 19 System.out.println(bd+ " "+bd.initials()+" "+bd.isBoomer()); 20 System.out.println(nr+ " "+nr.initials()+" "+nr.isBoomer()); 21 System.out.println(pw+ " "+pw.initials()+" "+pw.isBoomer()); 22 System.out.println(fs+ " "+fs.initials()+" "+fs.isBoomer()); 23 System.out.println(dk+ " "+dk.initials()+" "+dk.isBoomer()); 24 System.out.println(kka+ " "+kka.initials()+" "+kka.isBoomer()); 25 } 26 } 27