Java : Brackets within the if condition
<pre><code>if ((one.option != two.option) &amp;&amp; (one.side == two.side))
</code></pre>

<p>I need to check the followng Business Logic above </p>

<p>so i written this way </p>

<pre><code>if((data[0].getData.value()!=data[1].getData.value())
 &amp;&amp;(data[0].getAction().value()==data[1].getAction().value()))
</code></pre>

<p>Is this correct ??</p>

<p>Assuming data[0] in place of one 
getData.value() in place of option shown in the top if condition .</p>

<p>I am concerned about the brackets inside the if condition </p>
