+ 2

Can someone explain these to me.

1. Update the DateFormatter class to either formatDate in the US format (month/day/year), as it currently does, or the European format (year/month/day). No tests are provided for this update, and you are not required to add tests. NOTE: You should not add a new formatDate method to the DateFormatter class. 2. Add a method (in the Date class) that adds a specified number of days to the Date. No tests are provided for this method, and you are not required to add tests. HINT: The same number of days does not always trigger a month to increase. How do I update the class? I do not understand what it wants me to do. And also, can you also explain 2. Thank you https://code.sololearn.com/WgK5tTmp5g47

4th Oct 2019, 8:40 PM
Lame Lame
Lame Lame - avatar
4 Answers
+ 1
in java ? you cant. the closest way i can think of is to extend the class then override the method. not sure, the instruction seems unclear to me
4th Oct 2019, 8:57 PM
Taste
Taste - avatar
0
@Taste I currently have this format : String formatDate = date.getMonth() + "/" + date.getDay() + "/" + date.getYear(); How do i create another format and return which one it wants?
4th Oct 2019, 9:18 PM
Lame Lame
Lame Lame - avatar
0
tajik3663
5th Oct 2019, 12:30 AM
wolf