title: Java integer cyclic iteration shorthand
body: <p>When coding I find myself 
  doing the following very often:</p>
  
  <pre><code>corner++; 
  if(corner == 4) corner = 0;
  </code></pre>
  
  <p>Is there anyway do this in one line?</p>
  
  <p>In this example corner should be 0, 1, 2, 3, 0, 1, 2, 3, 0....</p>