In this java program tutorial scanner class is used to take input from the end user to take year as input and then by using
conditional statements if else to check condition whether the given year is leap or not and then print the output on console.