Calendar.getMinimum(int field) has the following syntax.
public abstract int getMinimum(int field)
In the following code shows how to use Calendar.getMinimum(int field) method.
// w ww. ja va 2 s .co m import java.util.Calendar; public class Main { public static void main(String[] args) { Calendar cal = Calendar.getInstance(); // print the minimum value for years int min=cal.getMinimum(Calendar.YEAR); System.out.println("Minimum Years: "+ min); } }
The code above generates the following result.