Home>

I'm making a system in Java to determine if a particular year is a leap year.
However, an error occurs in the "isLeap" part of the 4th line.
What's wrong?

class Main {
public static void main (String [] args) {
int [] years = {2000, 2010, 2030, 2150, 2600, 2800, 3200};
if (isLeap (years)) {
System.out.println (years + "years are leap years");
} else {
System.out.println (years + "years are not leap years");
}
}
private static boolean isLeap (int years) {
return (years% 4 == 0&&years% 100! = 0) || years% 400 == 0;
}
}