PersonDemo1.java
1    /* 
2    * PersonDemo1 is a simple program to create and textually display Person objects. along with initials and whether or not they are a baby boomer 
3     */
4    package people;
5    
6    public class PersonDemo1 {
7        public static void main(String[] args){
8    
9            //create the six person objects
10           Person bd = new Person("Bob Dylan",5,24,1941);
11           Person nr = new Person("Noomi Rapace",12,28,1974);
12           Person it = new Person("Isabelle Tracy",5,15,1998);
13           Person ny = new Person("Not You",1,2,2000);
14           Person kg = new Person("Keep Going", 2,21,1963);
15           Person so = new Person("Some Oldguy", 5,17,1772);
16   
17           //display the six person objects to the screen
18           System.out.println(bd + " " + bd.initials() + " " + bd.isBoomer());
19           System.out.println(nr + " " + nr.initials() + " " + nr.isBoomer());
20           System.out.println(it + " " + it.initials() + " " + it.isBoomer());
21           System.out.println(ny + " " + ny.initials() + " " + ny.isBoomer());
22           System.out.println(kg + " " + kg.initials() + " " + kg.isBoomer());
23           System.out.println(so + " " + so.initials() + " " + so.isBoomer());
24       }
25   }
26