Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Assignment 3

 
Eviano Afiemo
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys
I can't seem to get my head round the logic behind assignment Java3(Leap).
This is how I understand it:
[i]A particular year is considered to be a leap year if:
it is divisible by 4; but is not divisible by 400 and 100.[i]
Could some one tell me if I've got the right idea or if not please correct me.
confused: confused:
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You want to post this in the Cattle Drive forum; that's what it's for. I'll move it there now...
 
Matthew Phillips
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A year is always a leap year if it is divisible by 400. A year is also a leap year if it is divisible by 4, but not divisible by 100.
Matthew Phillips
 
Eviano Afiemo
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm sorry, I thought that's where I posted to.
Thanks Matthew...
[This message has been edited by Eviano Afiemo (edited April 03, 2001).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic