title: Java Switch Incompatible Types Boolean Int
body: <p>I have the following class:</p>
  
  <pre><code>public class NewGameContract {
  
  public boolean HomeNewGame = false;
  
  public boolean AwayNewGame = false;
  
  public boolean GameContract(){
  
      if (HomeNewGame &amp;&amp; AwayNewGame){
          return true;
      } else {
          return false;
      }
  }
  }
  </code></pre>
  
  <p>When I try to use it like so:</p>
  
  <pre><code>            if (networkConnection){
  
              connect4GameModel.newGameContract.HomeNewGame = true;
  
              boolean status = connect4GameModel.newGameContract.GameContract();
  
              switch (status){
  
                  case true:
                      break;
  
                  case false:
                      break;
              }
              return;
          }
  </code></pre>
  
  <p>I am getting the error:</p>
  
  <pre><code>incompatible types found: boolean required: int on the following
  `switch (status)` code.
  </code></pre>
  
  <p>What am I doing wrong?</p>