java.time.MonthDay.range() 方法示例


java.time.MonthDay.range() 方法示例

package com.codingdict;

import java.time.MonthDay;
import java.time.temporal.ChronoField;

public class MonthDayDemo {
   public static void main(String[] args) {

      MonthDay date = MonthDay.parse("--10-15");
      System.out.println("Range : " + date.range(ChronoField.DAY_OF_MONTH ));
   }
}