my dog learned polymorphism*
The moose likes Cattle Drive and the fly likes 1.3 question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "1.3 question" Watch "1.3 question" New topic
Author

1.3 question

Steven YaegerII
Ranch Hand

Joined: May 31, 2000
Posts: 182
Leap year occurs: on every year that is evenly divisible by 4, except every year that is evenly divisible by 100, except every year that is evenly divisible by 400.
In other words, I want to type
java Leap 2000
and see
leap year!
...In the three conditional sentences above, is the thinking:
" 2000 is evenly divisible by 4, so it is a leap year.
except 2000 is evenly divisible by 100, so it isn't a leap year.
except 2000 is evenly divisible by 400, so finally, it is a leap year. "
...I was going to post something else until I had the above thoughts
See Ya
paul wheaton
Trailboss

Joined: Dec 14, 1998
Posts: 20693
    ∞

You have it right.


permaculture Wood Burning Stoves 2.0 - 4-DVD set
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: 1.3 question