Blogger

Delete comment from: Java67

Anonymous said...

how about making the code a little shorter?

public static boolean leapyear(int year){
return ( year%400==0 || (year%4==0 && year%100!=0) )
}

Dec 10, 2019, 7:29:21 AM


Posted to How to check leap year in Java - program example

Google apps
Main menu