Page 1 of 1

[HD-OCP17/21-Fundamentals Pg 0, Sec. 22.2.2 - using-the-plus-minus-with-at-truncatedto-instance-methods]

Posted: Sat Mar 08, 2025 10:32 am
by joaoclopes
Hello,

there is a typo on the The withXXXmethods section:

Code: Select all

Period p1 = Period.ZERO.withDays(10);
p1 = p1.withMonthss(2);
p1 = p1.withYearss(1); //p1 now points to a Period with 1 year, 2 months, and 10 days
The withMonths and withYears method have an extra "s".

Thanks!

Re: [HD-OCP17/21-Fundamentals Pg 0, Sec. 22.2.2 - using-the-plus-minus-with-at-truncatedto-instance-methods]

Posted: Sun Mar 09, 2025 12:23 am
by admin
Right. Fixed.
thank you for your feedback!