nextLine() not working after a for loop
<p>Does any one know why my <code>nextLine()</code> is not working after a for loop in the following code? It's always skipping the <code>nextLine()</code> and going direct to the <code>if</code> statement.</p>

<pre><code>int[] a = new int[3]

for(int i=0; i&lt;3;i++)
{
  a[i] = nextInt();
}

String b = nextLine();

if(b == "go")
{
  .......
}
else
{
  ..... 
}
</code></pre>
