Leap Year Checker
Software Engineering

Leap Year Checker

JavaLogicJOptionPane

About this project

A simple but well-structured leap year checker that applies the standard Gregorian calendar rules: a year is a leap year if divisible by 4, except for century years which must also be divisible by 400.

The project comes in two flavours: a console version using Scanner for command-line interaction, and a JOptionPane version that presents the results through graphical dialog boxes.

While the logic is straightforward, this project demonstrates clean conditional logic, input handling, and the practice of building the same program for different interfaces.

Key Features

  • Gregorian calendar leap year rules
  • Console and GUI versions
  • Input validation
  • Clean conditional logic
  • Instant result feedback

Tech Stack

JavaJOptionPaneScanner