I am following \"The Art and Science of Java\" book and it shows how to calculate a leap year. The book uses ACM Java Task Force\'s library.
Here is the code the boo
As wikipedia states algorithm for the leap year should be
(((year%4 == 0) && (year%100 !=0)) || (year%400==0))
Here is a sample program how to check for leap year.