java day of month_Java MonthDay withDayOfMonth()用法及代码示例
MonthDay类的withDayOfMonth(int dayOfMonth)方法用于将传递的dayOfMonth用作参数来更改MonthDay对象的day-of-month,然后该方法返回更改后的MonthDay的副本。如果day-of-month值在指定的月份后无效,则抛出异常改变操作。用法:public MonthDay withDayOfMonth(int dayOfMonth)参数:此...