Class LeapYear

java.lang.Object
de.hdm_stuttgart.sd1.leap.LeapYear

public class LeapYear extends Object
Leap year calculations
  • Constructor Details

  • Method Details

    • main

      public static void main(String[] args)
      Parameters:
      args - unused
    • isLeapYear

      public static boolean isLeapYear(int year)
      Characterizing a given year either as leap year or non- leap year. Syntactically different implementation with regard to LeapYearCompact having exactly identical logic.
      Parameters:
      year - The year in question.
      Returns:
      true if year is a leap year, false otherwise.