Finding leap year using Method

 import java.util.*;


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

public static void LeapYear(int Year) {
if (((Year % 400 == 0)) || ((Year % 4 == 0) && (Year % 4 != 0))) {
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)");
}

}
}

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...