/* * This is a simple program to create and textually display Peron objects */ package people; public class PersonDemo1 { public static void main(String[] args){ Person bd = new Person("Bob Dylan", 5, 24, 1941); Person nr = new Person("Noomi Rapace", 12, 28, 1974); Person pw = new Person("Pharrell Williams", 4, 5, 1973); Person fs = new Person("Frank Sinatra", 12, 12, 1915); Person dk = new Person("Diana Krall", 11, 16, 1964); Person ss = new Person("Sean Schukraft", 2, 2, 2001); System.out.println(bd.toString() + " " + bd.initials() + " " + bd.isBoomer()); System.out.println(nr.toString() + " " + nr.initials() + " " + nr.isBoomer()); System.out.println(pw.toString() + " " + pw.initials() + " " + pw.isBoomer()); System.out.println(fs.toString() + " " + fs.initials() + " " + fs.isBoomer()); System.out.println(dk.toString() + " " + dk.initials() + " " + dk.isBoomer()); System.out.println(ss.toString() + " " + ss.initials() + " " + ss.isBoomer()); } }