title: Detect months with 31 days
body: <p>Is there an analogous form of the following code:</p>
  
  <pre><code>if(month == 4,6,9,11)
  {
    do something;
  }
  </code></pre>
  
  <p>Or must it be:</p>
  
  <pre><code>if(month == 4 || month == 6 etc...)
  {
    do something;
  }
  </code></pre>
  
  <p>I am trying to write an <code>if</code> statement that checks if this month has more than 31 days.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I guess the real problem is I undersand some of what I am taught but every time I try to use the sun website about java it just confuses me. My question is if I get a month in from a user and a day and I put it into a MM/dd format and evaluate it then is there an easier way to check if the month and the day is valid and after I check it for being valid I can either print the MM/dd in the format that I have. If it is not valid Print a line that says Invalid month or day.</p>