Package de.hdm_stuttgart.sd1.leap
Class LeapYear
java.lang.Object
de.hdm_stuttgart.sd1.leap.LeapYear
Leap year calculations
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isLeapYear
(int year) Characterizing a given year either as leap year or non- leap year.static void
-
Constructor Details
-
LeapYear
public LeapYear()
-
-
Method Details
-
main
- Parameters:
args
- unused
-
isLeapYear
Characterizing a given year either as leap year or non- leap year. Syntactically different implementation with regard toLeapYearCompact
having exactly identical logic.- Parameters:
year
- The year in question.- Returns:
- true if year is a leap year, false otherwise.
-