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