YearMonth.plusMonths

Returns a copy of this {@code YearMonth} with the specified number of months added. !(p) This instance is immutable and unaffected by this method call.

@param monthsToAdd the months to add, may be negative @return a {@code YearMonth} based on this year-month with the months added, not null @throws DateTimeException if the result exceeds the supported range

class YearMonth
plusMonths

Meta