GregorianCalendar.getActualMinimum(int field) has the following syntax.
public int getActualMinimum(int field)
In the following code shows how to use GregorianCalendar.getActualMinimum(int field) method.
/*w w w .j a v a 2 s .c o m*/ import java.util.*; public class Main { public static void main(String[] args) { GregorianCalendar cal = (GregorianCalendar) GregorianCalendar.getInstance(); // get actual minimum for day_of_month int min = cal.getActualMinimum(GregorianCalendar.DAY_OF_MONTH); System.out.println("Actual Minimum:" + min); // get actual minimum for YEAR min = cal.getActualMinimum(GregorianCalendar.YEAR); System.out.println("Actual Minimum:" + min); } }
The code above generates the following result.