title: Hash Code what Is this?
body: <pre><code>int value = 5381;
  
  for (int i = 0; i &lt; item.length(); i++) {
    value = value * 33 + item.charAt(i);
  }
  
  value &amp;= 0x7fffffff;
  value %= size;
  </code></pre>
  
  <p>This is Bernstein's hash code. I get everything except for the last two lines. What do they do? They also produce an error in the Java compiler, so they are clearly not valid code. How else could they be represented?</p>
  
  <p>I almost don't care what they do, as long as they work lol :P</p>