照着书打的代码还是不能执行,老司机能帮看一下错在哪儿吗?感谢
import java.util.Scanner;public class Yearpanding {
Scanner scan=new Scanner(System.in);
public static void main(String[] args) {
System.out.println("请输入年份");
long year=scan.nextLong();
if(year%4==0&&year%100!=0||year%400==0) {
System.out.println(year+"年是闰年");
}
else {System.out.println(year+"年不是闰年");
}
}
}