title: Java && operators
body: <p>I'm trying to make simple if statement , I need to see if my two String's values are not empty (does not equal "").
  I use &amp;&amp; operator , but sadly , it only checks one string properly if it's not empty , and if the second string is empty, he passes . Making &amp;&amp; kinda useless for me.</p>
  
  <pre><code>if ( StringUtils.isNullOrEmpty(name) &amp;&amp; StringUtils.isNullOrEmpty(sname)
              ) {do something}
  </code></pre>
  
  <p>I need them both to be checked properly . If at least one string is empty return false .
  If both are not empty return true. </p>