Java Calendar isLenient方法 Java Calendar internalGet方法 Java Calendar isSet方法 Java Calendar isLenient方法 package com.codingdict; import java.util.*; public class CalendarDemo { public static void main(String[] args) { // create a calendar Calendar cal = Calendar.getInstance(); // displays the current calendar System.out.println("Current Date and Time is " + cal.getTime()); // tells whether date/time interpretation is lenient. boolean b = cal.isLenient(); System.out.println("Interpretation is lenient: " + b); } } Java Calendar internalGet方法 Java Calendar isSet方法