# Comment on Tutorial - The switch Statement example in Java By Kamini

Comment Added by : Nick Scroggs

Comment Added at : 2013-03-26 01:44:04

Comment on Tutorial : The switch Statement example in Java By Kamini
```@Jai Shankar K I'm guessing you are not really that familiar with leap years. That's not to be unexpected, after all you're probably not over 113 years old, hell maybe you are not ever 13 years old. However the person who wrote this example knows that when a year is divisible by 100 (ie 500, 1600, 1700, 2000 etc) it may or may not be a leap year. If leap years were every 4 years, then over hundreds or years we would add too much time. Every 400 years our calendar would be off by an additional 3 days. To adjust for this, if a year is divisible by 100 and not by 400 then it is NOT a leap year. If the last two numbers are '00', then only years which are divisible by 400 are leap years. So, only the years 400, 800, 1200, 1600, and 2000 were leap years. 1500, 1700, 1800, and 1900 were not. There are also leap seconds which are added every now and again for fine tuning.```

View Tutorial

#### Related Tutorials

View Tutorial          By: kezyRoan at 2011-06-11 03:58:52

2. This works perfect for me. The only big problem is
View Tutorial          By: Eric at 2014-11-20 03:49:19

3. Your Work is Good, But i want to ask if there is a
View Tutorial          By: Good Muyis at 2011-01-08 09:47:14

4. Working !

Nice example, thanks !

View Tutorial          By: Akh at 2015-01-14 14:22:24

5. Hi
I tried to use this class , I don't get

View Tutorial          By: Asela at 2012-01-26 19:05:14

6. thanks, i will try. but can u tell me how to send
View Tutorial          By: ketut joko wibawa at 2011-01-02 05:18:01

7. Another solution to those, who feel that the probl
View Tutorial          By: ZoltÃ¡n P. Ackermann at 2010-12-09 01:58:51

8. thanks Mr Ramlak
i m using samsung j600 mob

View Tutorial          By: yash at 2008-05-13 15:05:49

9. Hi All could you pls. send the execution of the ab
View Tutorial          By: subbu at 2008-01-28 03:14:27

10. from docs api api/java/awt/Frame/setOpacity:

View Tutorial          By: robert at 2014-12-12 07:48:59