Question: Write a public method setDateAndTracking which takes a String argument used to set the trackingNumber. The method also sets the parent class field dateSent to
Write a public method setDateAndTracking which takes a String argument used to set the trackingNumber. The method also sets the parent class field dateSent to the date when the method is called, in the format dd MMM yyyy The method does not return a value.
Make use of the class method now in class LocalDate, the class method ofPattern in class DateTimeFormatter and the instance method format in LocalDate.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
