Java LeapYear

java写的判断输入的年份是否为闰年的程序

/**
 * @(#)leapyear.java
 *
 *
 * @CplusHua 
 * @version 1.00 2013/3/27
 */

import java.io.*;
public class leapyear {

    public static void main(String args[])
    throws IOException{
    	int a;
    	String str;
    	BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
    	str=buf.readLine();
    	a=Integer.parseInt(str);
    	if((0==a%4&&0!=a%100)||(0==a%400))
	    	System.out.println (a+"is a Leapyear");
	    else
	    	System.out.println (a+"is not a Leapyear");	
    }

}