1 package people; 2 3 /* 4 * PersonDemo1 is a simple program to create and textually display Person 5 * objects, together with initials and an indication of whether or not the 6 * person is a baby boomer. 7 */ 8 9 public class PersonDemo1 { 10 public static void main(String[] args){ 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 dp = new Person("Dude Person",7,2,1999 ); 15 Person bb = new Person("Bobby Bob",12,2,1900); 16 Person ek = new Person("Eugeune Krabs",1,1,1964); 17 Person mm = new Person("Mike Mike",9,2,2018); 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(dp + " " + dp.initials() + " " + dp.isBoomer()); 23 System.out.println(bb + " " + bb.initials() + " " + bb.isBoomer()); 24 System.out.println(ek + " " + ek.initials() + " " + ek.isBoomer()); 25 System.out.println(mm + " " + mm.initials() + " " + mm.isBoomer()); 26 } 27 } 28 29