Package de.hdm_stuttgart.sd1.leap
Class LeapYearCompact
java.lang.Object
de.hdm_stuttgart.sd1.leap.LeapYearCompact
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
-
LeapYearCompact
public LeapYearCompact()
-
-
Method Details
-
main
- Parameters:
args
- unused
-
isLeapYear
Characterizing a given year either as leap year or non- leap year. Syntactically different implementation with regard toLeapYear
having identical logic.- Parameters:
year
- The year in question.- Returns:
- true if year is a leap year, false otherwise.
-