Calendar getMinimum() Method in Java with Examples
The getMinimum(int calndr_field) method in Calendar class is used to return the Minimum value for the given calendar field(int calndr_field) of this Calendar instance.
public abstract int getMinimum(int calndr_field)
Parameters: The method takes one parameter calndr_field that refers to the calendar field which is to be operated upon.
Return Value: The method returns the Minimum value for the passed calendar field.
Below programs illustrate the working of getMinimum() Method of Calendar class:
Required days: 3 The Minimum days: 1
Required Months: 6 The Minimum months: 0
Attention reader! Don’t stop learning now. Get hold of all the important Java Foundation and Collections concepts with the Fundamentals of Java and Java Collections Course at a student-friendly price and become industry ready. To complete your preparation from learning a language to DS Algo and many more, please refer Complete Interview Preparation Course.