/* * PersonDemo1 is a simple program to create and textually display Person * objets. */ package people; public class PersonDemo1 { public static void main(String[] args){ // CREATE THE SIX-PERSON OBJETS Person bd = new Person("Bob Dylan", 5, 24, 1941); Person nr = new Person("Nioomi Rapace", 12, 28, 1974); Person pw = new Person("Pharrell Williams", 8, 19, 1921); Person fs = new Person("Frank Sinatra", 12, 31, 1999); Person dk = new Person("Diana Krall", 1, 1, 1947); Person oe = new Person("Odion Enaboifo", 7, 4, 2005); // 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(fs + " " + fs.initials() + " " + fs.isBoomer()); System.out.println(fs + " " + fs.initials() + " " + fs.isBoomer()); System.out.println(dk + " " + dk.initials() + " " + dk.isBoomer()); System.out.println(oe + " " + oe.initials() + " " + oe.isBoomer()); } }