post Increment problem
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3831341/why-does-this-go-into-an-infinite-loop">Why does this go into an infinite loop?</a>  </p>
</blockquote>



<pre><code>public class loop
{

    public static void main(String[] args)
    {
        int k=0;
        for (int i = 0; i &lt; 6; i++) 
        {
            k = k++;
            System.out.println(k);            
        }
    }
}
</code></pre>

<p>out put :</p>

<pre><code>0
0
0
0
0
0
</code></pre>

<p>Can You Please explain me why above resulting zeros even am incrementing k value and assigning it to k.</p>
