title: Boolean branching statement
body: <p>my code will run, but if isBalloon and isRed are both true, it prints "not balloon" instead of "red balloon"</p>
  
  <pre><code>import java.util.Scanner;
  
  public class RedBalloon {
    public static void main (String [] args) {
      boolean isRed = false;
      boolean isBalloon = false;
  
      if ((isBalloon == true) &amp;&amp; (isRed == false)){
        System.out.println("Balloon");
  
        if ((isBalloon == true) &amp;&amp; (isRed == true)){
          System.out.println("Red balloon");
        }
      }
      else {
        System.out.println("Not a balloon");
      }
      return;
    }
  }
  </code></pre>