This is a simple java app that tells you if a year is a leap year. In this example the year is hard coded into an integer variable.
This program checks to see if a year meets the three criteria to make it a leap year.
Screen Caps shown below taken from Mac OS X.
- The year can be evenly divided by 4.
- If the year can be evenly divided by 100, it is NOT a leap year, unless
- The year is also evenly divisible by 400.