title: Reverse a boolean value?
body: <p>In Java (or, to be honest, any computer language), to increment an int, you do as so:</p>
  
  <pre><code>// Option 1 - efficient
  int x = 0;
  x++;
  // x = 1
  
  // Option 2 - works, but is ugly
  int y = 0;
  y = y + 1;
  // y = 1;
  </code></pre>
  
  <p>How would you do this to a boolean?</p>
  
  <pre><code>// Standard way to
  // oppose a boolean
  boolean isTrue = false;
  if(isTrue){
      isTrue = false;
  } else if(!isTrue){
      isTrue = true;
  }
  </code></pre>
  
  <p>Is there not a shortcut to change a boolean?
  For example, if the boolean was <code>true</code>, is there a way to change it with just a small shortcut like <code>x++;</code>?</p>