The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
February 2002



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Leap year

Posted by Lylah on February 12, 2002 at 6:08 PM

How do i write a program to determine if a certain year is a leap year or not?
I have the pseudocode for it.
here it is

if a year is divisible by 4
its a leap year
but if it is divisible by 100
it is not a leap year
but if it is divisible by 400
it is a leap year


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us