import java.util.Scanner;

public class leap_year {
    public static void main(String[] args){
        System.out.println("LEAP YEAR Test");
        System.out.println("\t ENTER YEAR");
        Scanner sc = new Scanner(System.in);
        short year = sc.nextShort();
        if(year % 4 == 0) {
            if ((year % 100) != 0)
                System.out.println(year + " Is leap year");
        }
            else {
            if (year % 400 == 0)
                System.out.println(year + " Is leap year");

            else
                System.out.println(year + " Is not leap year ");
        }
    }
}
 Respond with more than 800 words.
user