Java Calendar getActualMinimum方法 Java Calendar getActualMaximum方法 Java日历getInstance方法 Java Calendar getActualMinimum方法 package com.codingdict; import java.util.*; public class CalendarDemo { public static void main(String[] args) { // create a calendar Calendar cal = Calendar.getInstance(); // return the minimum value that the year field could have int i = cal.getActualMinimum(Calendar.YEAR); System.out.println("Minimum Year :"+ i); // returns the minimum value that the month field could have int a = cal.getActualMinimum(Calendar.MONTH); System.out.println("Minimum month :"+ a); } } Java Calendar getActualMaximum方法 Java日历getInstance方法