# Determining Leap Years

A leap year is one that is divisible by 4 but not by 100, or one that is divisible by 400. Write a class named LeapYearDeterminer whose main method prompts the user for a year to consider and then displays whether or not that year is a leap year.

Sample run 1:

This program determines if a year is a leap year.
-------------------------------------------------
Enter the year to consider: 1971
1971 is not a leap year

Sample run 2:

This program determines if a year is a leap year.
-------------------------------------------------
Enter the year to consider: 2016
2016 is a leap year


Sample run 3:

This program determines if a year is a leap year.
-------------------------------------------------
Enter the year to consider: 1900
1900 is not a leap year

Sample run 4:

This program determines if a year is a leap year.
-------------------------------------------------
Enter the year to consider: 2000
2000 is a leap year


Tags: java.util.Scanner, boolean operators, the conditional operator "?"