标签:png ue4 main span ati ret com str generate
1.输入一个年份,判断是不是闰年(能被4整除但不能被100整除,或者能被400整除)
package text; public class Jiejue4 { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println(panduan(2000)); } public static boolean panduan(int n) { if((n%4==0&&n%100!=0)||n%400==0) { return true; } return false; } }
标签:png ue4 main span ati ret com str generate
原文地址:https://www.cnblogs.com/zhangjun19991118/p/12536471.html