Finding weather year is leap year or non leap year

 import java.util.Scanner;


public class CheckLeapYear1 {

public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter the Year to be checked");
int Year = sc.nextInt();

System.out.println(LeapYear(Year));
if (LeapYear(Year) == true) {
System.out.println("The year " + Year + " " + "is a leap Year.");
} else {
System.out.println("The year " + Year + " " + "is a normal year.(Not a leap Year)");
}
}

public static boolean LeapYear(int Year) {
boolean a = (Year % 4) == 0;
boolean b = (Year % 100) != 0;
boolean c = (Year % 400 == 0);

return a && b || c;
}
}

Google Script for Data Entry Form in Google Spreadsheet

// function to validate the entry made by user in user form function validateEntry (){ // declare a variable and referernece of active goog...