1 /* 2 * simple program to create and teztually display Person objects 3 */ 4 5 package people; 6 7 public class PersonDemo1 { 8 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", 5, 24, 1941); 15 Person fs = new Person("Frank Sinatra", 12, 12, 1973); 16 Person dk = new Person("Diana Krall", 11, 16, 1964); 17 Person es = new Person("Ethan Sonneville", 9,4, 2000); 18 19 //DISPLAY THE SIX PEOPLE 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(dk + " " + dk.initials() + " " + dk.isBoomer()); 25 System.out.println(es + " " + es.initials() + " " + es.isBoomer()); 26 27 28 } 29 } 30