you could keep your original code also it would work as long as you fix the !== to !=
Type: Posts; User: lorider93p
you could keep your original code also it would work as long as you fix the !== to !=
public static boolean isLeapYear(int year) {
boolean leap = false;
if ((year % 4 == 0) && (year % 100 != 0) && (year % 400 == 0))
{
leap = true;
}
return leap;
public static boolean isLeapYear(int year) {
boolean leap = false;
if ((year % 4 == 0) && (year % 100 !== 0) && (year % 400 == 0))
{
leap = true;
}
return...