1 /* 2 * A program to model a person in terms of five properties, first name and last name (String values), month, day, and year of birth (int values). 3 * Made by Hunter Gersitz | SUNY Oswego | Fall 2019 4 * */
/* * A program to model a person in terms of five properties, first name and last name (String values), month, day, and year of birth (int values). * Made by Hunter Gersitz | SUNY Oswego | Fall 2019 * */ package people; public class PersonDemo1 { public static void main(String[] args) { // CREATE THE SIX PERSON 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",4,05,1973); Person fs = new Person("Frank Sinatra",12,12,1915); Person dk = new Person("Dianna Krall",11,16,1964); Person hg = new Person("Hunter Gersitz",8,31,1999); // DISPLAY THE SIX PERSON OBJECTS TO THE STANDARD OUTPUT STREAM System.out.println(bd + " " + bd.getInitials() + " " + bd.getSpecialYr()); System.out.println(nr + " " + nr.getInitials() + " " + nr.getSpecialYr()); System.out.println(pw + " " + pw.getInitials() + " " + pw.getSpecialYr()); System.out.println(fs + " " + fs.getInitials() + " " + fs.getSpecialYr()); System.out.println(dk + " " + dk.getInitials() + " " + dk.getSpecialYr()); System.out.println(hg + " " + hg.getInitials() + " " + hg.getSpecialYr()); } }