title: What's the most concise way to get the inverse of a Java boolean value?
body: <p>If you have a boolean variable:</p>
  
  <pre><code>boolean myBool = true;
  </code></pre>
  
  <p>I could get the inverse of this with an if/else clause:</p>
  
  <pre><code>if (myBool == true)
   myBool = false;
  else
   myBool = true;
  </code></pre>
  
  <p>Is there a more concise way to do this?</p>