title: Is there a || operator for int?
body: <p>I am trying to write a method that takes a single int parameter that is the numeric month and returns the number of days in the given month. So, a parameter of 1 would return 31 since there are 31 days in January and a parameter of 2 would return 28 since there are 28 days in February.</p>
  
  <p>Here's what I have so far:</p>
  
  <pre><code> public static void daysInMonth(int month) {
             if (month == 1||3||5||7||8||10||12)
           System.out.println("31");
        else if (month == 4||6||9||11)
           System.out.println("30");
        else if (month == 2)
           System.out.println("28");
  </code></pre>
  
  <p>I keep getting the error message "operator || cannot be applied to boolean,int." Can anyone help me figure out what to do?</p>