闰年:年份能被四整除但是不能被一百整除,或者能被四百整除boolean isRunNian(int year) {return year % 4 == 0 && year % 100 != 0 || year % 400 == 0;}