Java Program – to check for leap year.

Output: