title: Error handling with if statement
body: <p>This is to validate my GUI input and make sure the user can not enter values out of range</p>
  
  <p>I'm trying to handle this exception with if statement but I'm still printing the red error message. I just want the "Value out of range" message to be printed. I don't want those red exceptions error in my console. Please help or advise. Any other way to handle this can is fine with me. </p>
  
  <pre><code>    if (totalTimeToTakeOff &lt;= 0 || totalTimeToLand &lt;= 0 || arrivalRate &lt; 0
                      || arrivalRate &gt; 1 || departureRate &lt; 0 || departureRate &gt; 1
                      || remaingFuel &lt;= 0 || numOfRunways &lt;= 0 || sIMULATION_TIME &lt; 0) {
                  throw new IllegalArgumentException("Values out of range");
  
              }
  </code></pre>