Check if multiple conditions are all false or all true - java
<p>This sounds simple but my mind is drawing a blank</p>

<p>say i have this </p>

<pre><code>bool evaluator
for each form element{

    if (element.name = 'fname')
    {
      perform some op
      evaluator = true
    }else evaluator false


    if (element.name = 'city')
    {
      perform some op
      evaluator true
    }else evaluator false

    if (element.name='shipcity')
    {
      perform some op
      evaluator true
    }else evaluator false

}

return evaluator

where evaluator :

    if((t/f) &amp;&amp; (t/f) &amp;&amp; (t/f))
         |         |        |-----------------evaluation of condition 3
         |         |-----------evaluation of condition 2
         |--------------evaluation of condition 1
</code></pre>

<p>so at the end i get the '&amp;&amp;' of the 3 conditions. or does java have a built in method which will do this for me</p>
