HW1/src/com/company/Main.java
//Leap Years are any year that can be evenly divided by 4.  A year that is evenly divisible by 100 is a leap year only if it is also evenly divisible by 400.
Leap Years are any year that can be evenly divided by 4.  A year that is evenly divisible by 100 is a leap year only if it is also evenly divisible by 400.
Leap Years are any year that can be evenly divided by 4 . A year that is evenly divisible by 100 is a leap year only if it is also evenly divisible by 400 .
public static boolean leapYear(int number) {
        if (number % 4 != 0) return false;
        else if (number % 100 == 0 && number % 400 != 0) {
            return false;
        } else return true;
    }
public static boolean leapYear ( int number ) { if ( number % 4 != 0 ) return false ; else if ( number % 100 == 0 && number % 400 != 0 ) { return false ; } else return true ; }
Leap Years are any year that can be evenly divided by 4.
Leap Years are any year that can be evenly divided by 4 .