DISQUS

DISQUS Hello! Software Test Objects is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Jump to original thread »
Author

Test for leap year

Started by marekj · 9 months ago

Leap year is an integer such that for modulo for division by 4 is 0 and modulo for division by 100 is NOT 0 OR modulo for the division by 400 is 0.
roll your own simple test for leap year in java (int year;)

if ( ((year % 4 == 0) && !(year % 100 ... Continue reading »

0 comments

This thread has no comments yet.

Add New Comment

Returning? Login