package zuoye;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
public class zuoye3 {
public static void main(String[] args) throws ParseException{
fun1();
}
public static void fun1() throws ParseException{
SimpleDateFormat a=new SimpleDateFormat("yyyy-MM-dd");
Date a1=a.parse("2004-00-00");
long a2=a1.getTime();
Date b=a.parse("2003-00-00");
long b1=b.getTime();
int a4=(int) ((a2-b1)/1000/60/60/24);
if(a4!=365){
System.out.println("不是闰年");
}else{
System.out.println("是闰年或平年");
}
}
}