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