title: If answer is this don't ask this
body: <p>So I want to make it so that if you give a specific answer to a question, it skips the other questions.
  This is currently my code:</p>
  
  <hr>
  
  <pre><code>    System.out.print("How old are you? ");
      int age = Integer.parseInt(scanner.nextLine());
      System.out.print("Do you already have a scooter license? ");
      String scooter = scanner.nextLine();
      System.out.print("Do you already have a car license? ");
      String auto = scanner.nextLine();
  
      if (age &gt;= 17 &amp;&amp; auto.equals("no") || age &gt;= 17 &amp;&amp; auto.equals("No")) {
          System.out.println("You can get a car license.");
      } else if (age &gt;= 17 &amp;&amp; auto.equals("yes") || age &gt;= 17 &amp;&amp; auto.equals("Yes")){
          System.out.println("You can also buy a scooter.");
      } else if (age == 16 &amp;&amp; scooter.equals("no") || age == 16 &amp;&amp; scooter.equals("No")) {
          System.out.println("You can get a scooter license.");
      } else if (age == 16 &amp;&amp; scooter.equals("yes") || age == 16 &amp;&amp; scooter.equals("Yes")) {
          System.out.println("You can get a car license next year.");
      } else if (age &lt; 16) {
          System.out.println("When you are 15.5 years old you can do your written exam for a scooter license.");
          System.out.println("And when you're 16 you can get a scooter license.");
      }
  }
  </code></pre>
  
  <hr>
  
  <p>So what I want is that when you answer anything under 16 to the first question, that you skip the other 2 questions.</p>
  
  <p>And if you answer 16 to the first question, you skip the 3rd question.</p>
  
  <p>And if you answer 17 or higher to the first question you skip the 2nd question.</p>
  
  <p>Can you help me?</p>