title: Why doesn't i++ post increment operation work in Java?
body: <p>I have this code:</p>
  <pre><code>int i = 0;
  i = ++i; //pre increment
  System.out.println(i); //Prints 1
  </code></pre>
  <p>But if I cahnge:</p>
  <pre><code>int i = 0;
  i = i++; //post increment
  System.out.println(i); //Prints 0
  </code></pre>
  <p>Why?</p>