If statement JAVA : <pre><code>int num=6;
num=num+1;
if (num&gt;6)
jTextField1.setText(Integer.toString(num));
else
jTextField1.setText(Integer.toString(num+5));
</code></pre>

<p><strong>I am confused with the output which will be displayed in jTextField1 if it should be 12 or 11</strong>.</p>

<p><em>My one more question,</em>
in the below case what would we use "num=7" or "num==7"?</p>

<pre><code>int num=6;
if (num==7)
jTextField1.setText("a");
else
jTextField1.setText("b");
</code></pre>
