title: Count weekends between 2 dates in Groovy
body: <pre><code>def countSATSUN=0 
  if ((Calendar.SATURDAY != cal1.get(Calendar.DAY_OF_WEEK)) &amp;&amp; (Calendar.SUNDAY != cal1.get(Calendar.DAY_OF_WEEK))) {
      numberOfDays++;
  }
  </code></pre>
  <p>Why <code>&amp;&amp;</code> operator is used can someone explain?</p>