1 /* 2 * PersonDemo1 is a simple program to create and textually display Person 3 * objects. 4 */ 5 6 package people; 7 8 public class PersonDemo1 { 9 public static void main(String[] args) { 10 11 //CREATE THE SIX PERSON OBJECTS 12 Person bd = new Person("Bob Dylan" ,5,24,1941); 13 Person nr = new Person("Noomi Rapace" ,12,28,1974); 14 Person pw = new Person("Pharrell Williams" ,8,24,1953); 15 Person fs = new Person("Frank Sinatra" ,9,29,2009); 16 Person da = new Person("Diana Krall" ,5,7,1999); 17 Person kc = new Person("Kevin Ciosek" ,10,26,2001); 18 19 //DISPLAY THE SIX PERSON OBJECTS TO THE STANDARD OUTPUT STREAM 20 System.out.println(bd + " " + bd.initials() + " " + bd.isBoomer()); 21 System.out.println(nr + " " + nr.initials() + " " + nr.isBoomer()); 22 System.out.println(pw + " " + pw.initials() + " " + pw.isBoomer()); 23 System.out.println(fs + " " + fs.initials() + " " + fs.isBoomer()); 24 System.out.println(da + " " + da.initials() + " " + da.isBoomer()); 25 System.out.println(kc + " " + kc.initials() + " " + kc.isBoomer()); 26 27 } 28 } 29 30