LeapYear
public class LeapYear {
public static void main(String[] args) {
// TODO 自动生成的方法存根
int year=Integer.parseInt(args[0]);
int leap;
if(year%4==0){
if(year%100==0){
if(year%400==0)
leap=1;
else leap=0;
}
else
leap=1;
}
else
leap=0;
if(leap==1)
System.out.println(year+"年是闰年");
else
System.out.println(year+"年不是闰年");
}
}