I have seen recently code of GregorianCalendar in which I saw the function of isLeapYear:
That was as follows:
Now I really cann't relate why there is a reason to check whether is it divisible by 100 and 400 after checking divisible by 4.... I mean to say that if a number is divisible by 4 then it will be automatically divisible by 100 and 400.....
Then what is the use.......
COuld anybody explain this one...
I also don't understand why the code is checking that passed parameter is whether greater then 1582 or not.....
