Question: IN JAVA PLEASE: Write the definition of a method for the DateType class called countDays that takes a DateType object as its parameter. Create an

IN JAVA PLEASE: Write the definition of a method for the DateType class called countDays that takes a DateType object as its parameter. Create an ArrayList of type DateType. The method should count how many day are between the current object's date (the current DateType object) and the parameter (DateType object) and return the integer value to the calling function. The method works by subtracting the current date object (DateType object) from the date member of the DateType object parameter. (Note: do not use system date methods for this method.)

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!