/* * PersonDemo1 is a simple program to create and textually display Person objects. */ package people; public class PersonDemo1 { public static void main(String [] args) { // Create the six persons 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",6,9,1892); Person fs = new Person("Frank Sinatra",8,3,1950); Person dk = new Person("Diana Krall",1,26,1990); Person mms = new Person("Myatmin Soe", 6,5,1996); // Display the six persons 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(mms + " " + mms.initials() + " " + mms.isBoomer()); } }