Why doesn't this code work. I am an amateur, started learning java today.
link to java visualiser: http://www.cs.princeton.edu/~cos126/java_visualize/#
this is the code:
public class ClassNameHere {
public static int max(int[] m) {
if ((m % 400 == 0) && (m % 4 == 0) && (m % 100 != 0)) {
System.out.println(m + "is a leap year");
} else {
System.out.println(m + "is not a leap year");
}
}
}
max(2000);