Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
• Campbell Ritchie
• Paul Clapham
• Ron McLeod
• Jeanne Boyarsky
• Tim Cooke
Sheriffs:
• Liutauras Vilda
• paul wheaton
• Henry Wong
Saloon Keepers:
• Tim Moores
• Tim Holloway
• Stephan van Hulst
• Carey Brown
• Frits Walraven
Bartenders:
• Piet Souris
• Himai Minh

# Assignment 1.3

Ranch Hand
Posts: 48
• Number of slices to send:
Optional 'thank-you' note:
Hi there,
I did not understand the rules used for the leap year problem ...
I used to think that leap year occurs every 4yrs ... Could any one explain this a bit more ... Also if a particular year is divisible by 4 and 100 then is'nt divisible 400 ?? I'm confused with the problem specification ....
[This message has been edited by kavya krushi (edited February 05, 2001).]

Ranch Hand
Posts: 185
• Number of slices to send:
Optional 'thank-you' note:
I was confuse too. Here are 2 references:
http://www.javaranch.com/ubb/Forum19/HTML/000162.html http://www.javaranch.com/ubb/Forum19/HTML/000161.html

Sheriff
Posts: 9109
12
• Number of slices to send:
Optional 'thank-you' note:
A leap year occurs every 4 years. However if the year (like 1900) is divisible by 100 but not by 400, it is not a leap year. But if a year (like 2000) is divisible by 4 and by 100 and by 400, it is a leap year.

The style guide also gives some example code related to this.

[This message has been edited by Marilyn deQueiroz (edited February 05, 2001).]

 We should throw him a surprise party. It will cheer him up. We can use this tiny ad: free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter