The
lengthOfYear() method of
java.time.chrono.HijrahDate class is used to get the no of days present in a year represented by a particular hijrah date.
Syntax:
public int lengthOfYear()
Parameter: This method does not accept any argument as a parameter.
Return Value: This method returns the
number of days present as an integer value in a year represented by a particular hijrah date.
Below are the examples to illustrate the
lengthOfYear() method:
Example 1:
Output:
no of day present: 354
Example 2: