Question: package Model; import java.util.ArrayList; public class Model { public Model(){ // //BDAY objects BirthDate birthDate1 = new BirthDate(3, 28, 2001); BirthDate birthDate2 = new BirthDate(10,

package Model; import java.util.ArrayList; public class Model { public Model(){ // //BDAY objects BirthDate birthDate1 = new BirthDate(3, 28, 2001); BirthDate birthDate2 = new BirthDate(10, 17, 2002); BirthDate birthDate3 = new BirthDate(3, 2, 2002); //ADDr Address address1 = new Address("5687", "Marshall RD", "Upper darby","PA", 19082); Address address2 = new Address("6057", "Bartlett AVE", "Sharon hill","PA", 19082); Address address3 = new Address("7040", " Ashton RD", "Drexel hill","PA", 19082); // student Student student1 = new Student(55632, "edeola", "choni", "birthDate"+birthDate1, "address:"+address1, "267-789-9845"); Student student2 = new Student(55632, "gooodness", "odela", "birthDate"+birthDate2, "address:"+address2, "267-789-9845"); Student student3 = new Student(55632, "mobiye", "chichi", "birthDate"+birthDate3, "address:"+address3, "267-789-9845"); //printing student statement System.out.println(student1.getStudentInfo()); System.out.println(student2.getStudentInfo()); System.out.println(student3.getStudentInfo()); // determining who is the oldest using if else statement. if ( student1.getBirthDate().toString().equals(student1.getBirthDate().toString()) && student2.getBirthDate().toString().equals(student3.getBirthDate().toString())){ System.out.println("edeola, goodness, and mobiye all share the same birthdays. "); } else if ( student1.getBirthDate().toString().equals(student1.getBirthDate().toString()) && student1.getBirthDate().toString().(student3.getBirthDate().toString())) { System.out.println("edeola, goodness, and mobiye all share the same birthdays. "); } } } 

// HOW DO I WRITE THE ELSE IF AND ELSE STATEMENTS. HELP IM NOT SURE ONHOW TO COMPARE THE DATES BECAUSE ITS A STRIN GAND IT WONT LET ME COMPARE STRINGS.

//THIS IS JAVA BY THE WAY

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!