title: Java: What does ~ mean
body: <p>In this Java source code I have this line:</p>
  
  <pre><code>if ((modifiers &amp; ~KeyEvent.SHIFT_MASK) != 0) ....
  </code></pre>
  
  <p>What does the tilde <code>~</code> mean?</p>