Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

can someone please help how can I advance a birthday date 3 days using nextdate(

ID: 3675889 • Letter: C

Question

can someone please help how can I advance a birthday date 3 days using nextdate()
and using laterdate() to one week

I have included my error te is todaysDate.toString )): myBirthday is " myBirthday.toString)): 1 brintin("halloween is " halloween.toString )) ystem.out.println("christmas is christmas.tostring ) 47 1 print a date implicitly 98 System.out.printin ("todaysDate is "todaysDate): System.out.println ("myBirthday ismyBirthday) System.out.println ("halloween is "halloween): System.out.println ("christmas is"christmas): 31 52 /I adavance the date myBirthday Birthday.nextday 55 System.out.printin ("3 days after myBirthday is"myBirthday): 2 59 60 62

Explanation / Answer

There no function call nextday() and laterdate() in java, instead you can use

myBirthDay = DateUtil.addDays(myBirthDay, 3);

myBirthDay = DateUtil.addDays(myBirthDay, 7);

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote