title: Mod operator in java for negative number is not working?
body: <p>In Java I had tried  </p>
  
  <pre><code>-1 % 20  
  </code></pre>
  
  <p>expecting it to return -1... but the actual value is 19.<br>
  Can anyone help me out?</p>