title: if condition always returns true (Java)
body: <p>I am trying to implement a date system that inevitably displays tomorrows day, month and year.</p>
  
  <p>The problem I am having is that the one of the if statements always returns true, and the ones after this one always return false.</p>
  
  <p>Here is part of my code:</p>
  
  <pre><code>public class dateVerification {
  
      int tomorrowDay = 0;
      int tomorrowMonth = 0;
      int tomorrowYear = 0;
      int day = 0;
      int month = 0;
      int year = 0;
  
      public void date() {
  
          Scanner myScanner = new Scanner(System.in);
          System.out.println("Enter the day");
          day = myScanner.nextInt();
          System.out.println("Enter the month");
          month = myScanner.nextInt();
          System.out.println("Enter the year");
          year = myScanner.nextInt();
  
          switch (month) {
              case 1:
                  if (month == 1 || month == 3 || month == 5 || month == 7 || month == 8 || month == 10) {
                      if (day &lt; 31) {
                          tomorrowDay = day + 1;
                      } else {
                          tomorrowDay = 1;
                          tomorrowMonth = month + 1;
                      }
                  }
                  break;
  </code></pre>
  
  <p>The line that is returning true is:</p>
  
  <pre><code> if (month == 1 || month == 3 || month == 5 || month == 7 || month == 8 || month == 10)
  </code></pre>
  
  <p>And everything else is returning false, i.e. my case 2 statement</p>
  
  <pre><code>if (month == 4 || month == 6 || month == 9 || month == 11)
  </code></pre>
  
  <p>Can anybody shed some light on this?</p>