Person.java
package people;

public class Person implements PersonSpecification {

    private String firstName;
    private String lastName;
    private int month;
    private int day;
    private int year;

    public Person(String name, int month, int day, int year){
        int index = name.indexOf(" ");
        this.firstName = name.substring(0,index);
        this.lastName = name.substring(index+1);
        this.month = month;
        this.day = day;
        this.year = year;
    }

    public String toString() {
        return firstName +" "+ lastName +", "+"born " + month +"/" + day + "/" + year;
    }


    public String firstName() {
        return this.firstName;
    }

    public String LastName() {
        return lastName;
    }

    public int month() {
        return month;
    }

    public int day() {
        return day;
    }

    public int year() {
        return year;
    }

    public String initials() {
        return firstName.substring(1) + lastName.substring(lastName.length());
    }

    public boolean isBoomer() {
        return year >= 1946 && year <= 1964;
    }
    }