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


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

package com.codingdict;



import java.time.DayOfWeek;

import java.time.temporal.ChronoField;



public class DayOfWeekDemo {

   public static void main(String[] args) {



      DayOfWeek day = DayOfWeek.of(2);

      System.out.println("Range : " + day.range(ChronoField.DAY_OF_WEEK ));

   }

}