title: Is there a way to end the program if statement is false?
body: <p>I am a just a beginner Java programmer and I was just wondering if there is a way to end the program if the user input is false. Here is an example:</p>
  
  <pre><code>if (age &gt; 13) {
      System.out.println("You are eligible for this site, you may proceed. ");
  } else {
   // End program here if statement = false
  }
  </code></pre>
  
  <p>(Please answer with the code if you don't mind.)</p>