[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
Hello,
there is a typo on the The withXXXmethods section:
The withMonths and withYears method have an extra "s".
Thanks!
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
Thanks!