Detect months with 31 days
Posted
by daddycardona
on Stack Overflow
See other posts from Stack Overflow
or by daddycardona
Published on 2009-11-27T00:00:29Z
Indexed on
2010/05/09
5:08 UTC
Read the original article
Hit count: 144
java
|if-statement
Is there an analogous form of the following code:
if(month == 4,6,9,11)
{
do something;
}
Or must it be:
if(month == 4 || month == 6 etc...)
{
do something;
}
I am trying to write an if
statement that checks if this month has more than 31 days.
© Stack Overflow or respective owner