@@ -0,0 +1,1983 @@
+/**%0A * President class has first name, last name, and birthday as month, day and year.%0A *    %3C%3C%3C this code is Not complete %3E%3E%3E%0A */%0Apublic class President implements Comparable %7B%0A    private String firstName;%0A    private String lastName;%0A    private String month;%0A    private int day;%0A    private int year;%0A%0A    public President(String f, String l, String m, int d, int y)  %7B%0A        firstName = f;%0A        lastName = l;%0A        month = m;%0A        day = d;%0A        year = y;%0A    %7D%0A%0A    /**%0A     * %3C%3C%3C write a toString method %3E%3E%3E%0A     * returns a presidents name, birthday month, day, and year.%0A     */%0A    public String toString() %7B%0A        return this.firstName + %22 %22 + this.lastName + %22: %22 + this.month + %22 %22 + this.day + %22, %22 + this.year;%0A    %7D%0A%0A    /**%0A     * %3C%3C%3C write a compareTo method %3E%3E%3E%0A     * Compares two presidents by birthday: month and day (not year)%0A     * If two presidents have the same birthday then last name is used%0A     * to compare.%0A     */%0A    public int compareTo(Object other) %7B%0A        String months=%22January February March April May June July August September October November December%22;%0A%0A        if (months.indexOf(this.month) %3E months.indexOf(((President) other).getMonth())) %7B%0A            return 1;%0A        %7D else if (months.indexOf(this.month) %3C months.indexOf(((President) other).getMonth())) %7B%0A            return -1;%0A        %7D else %7B%0A            // Move to day%0A            if (this.day %3E ((President) other).getDay()) %7B%0A                return 1;%0A            %7D else if (this.day %3C ((President) other).getDay()) %7B%0A                return -1;%0A            %7D else %7B%0A                // Move to last name%0A                return this.lastName.compareTo(((President) other).getLastName());%0A            %7D%0A        %7D%0A    %7D%0A%0A    /*** Add other methods if needed. ***/%0A%0A    public String getMonth() %7B%0A        return this.month;%0A    %7D%0A%0A    public int getDay() %7B%0A        return this.day;%0A    %7D%0A%0A    public String getLastName() %7B%0A        return this.lastName;%0A    %7D%0A%7D%0A

Create President.java