1 /* 2 * PersonDemo1 is a simple program to create and textually display Peron objects, together with initials and an 3 * indication of whether or not the person is a baby boomer. 4 */ 5 6 package people; 7 8 import people.Person; 9 10 public class PersonDemo1 { 11 12 public static void main(String[] args){ 13 14 // CREATE THE SIX PERSON OBJECTS 15 Person bd = new Person("Bob Dylan",5,24,1941); 16 Person nr = new Person("Noomi Rapace", 12,28,1974); 17 Person pw = new Person("Pharrell Williams", 9,15,2554); 18 Person fs = new Person("Frank Sinatra", 11,22,3344); 19 Person dk = new Person("Dianna Krall", 4,26,2241); 20 Person kf = new Person("Kuncheng Feng", 3,28, 5041); 21 22 // DISPLAY THE SIX PERSON OBJECTS TO THE STANDARD OUTPUT STREAM. 23 System.out.println(bd + " " + bd.initials() + " " + bd.isBoomer()); 24 System.out.println(nr + " " + nr.initials() + " " + nr.isBoomer()); 25 System.out.println(pw + " " + pw.initials() + " " + pw.isBoomer()); 26 System.out.println(fs + " " + fs.initials() + " " + fs.isBoomer()); 27 System.out.println(dk + " " + dk.initials() + " " + dk.isBoomer()); 28 System.out.println(kf + " " + kf.initials() + " " + kf.isBoomer()); 29 30 } 31 }