java-闰年的判断 GregorianCalendar
作者:互联网
package com.rj.bd.new_one; import java.util.GregorianCalendar; /** * @desc 闰年的判断 * @time 2019-09-08 * @author yhx * */ public class RunNina { public static void main(String[] args) { int year = 2020; GregorianCalendar gc = new GregorianCalendar(); boolean result = gc.isLeapYear(year); System.out.println(result); } }
标签:java,闰年,result,year,new,public,GregorianCalendar 来源: https://www.cnblogs.com/yhx0921/p/11487565.html