/* * PersonDemo1 is a simple program to create and textually display Peron objects, together with initials and an * indication of whether or not the person is a baby boomer. */ package people; import people.Person; public class PersonDemo1 { public static void main(String[] args){ // CREATE THE SIX PERSON OBJECTS Person bd = new Person("Bob Dylan",5,24,1941); Person nr = new Person("Noomi Rapace", 12,28,1974); Person pw = new Person("Pharrell Williams", 9,15,2554); Person fs = new Person("Frank Sinatra", 11,22,3344); Person dk = new Person("Dianna Krall", 4,26,2241); Person hz = new Person("Han Zhang", 11,1, 1997); // DISPLAY THE SIX PERSON OBJECTS TO THE STANDARD OUTPUT STREAM. System.out.println(bd + " " + bd.initials() + " " + bd.isBoomer()); System.out.println(nr + " " + nr.initials() + " " + nr.isBoomer()); System.out.println(pw + " " + pw.initials() + " " + pw.isBoomer()); System.out.println(fs + " " + fs.initials() + " " + fs.isBoomer()); System.out.println(dk + " " + dk.initials() + " " + dk.isBoomer()); System.out.println(hz + " " + hz.initials() + " " + hz.isBoomer()); } }