title: Combine 2 Boolean statements to make another one
body: <p>I am trying to combine two boolean statements in order to validate a number. </p>
  
  <p>This is the code for the two functions:</p>
  
  <pre><code>public boolean numberOne(String number)
  {
      int a = Integer.parseInt(number);
      if(a &gt;= 0 &amp;&amp; a &lt;= 7 &amp;&amp; number.length() &lt;= 1) {
          return true;
      }
      else {
          return false;
      }
  }
  
  
  public boolean numberTwo(String number)
  {
      int b = Integer.parseInt(number);
      if(b &gt;= 01 &amp;&amp; b &lt;= 15 &amp;&amp; number.length() &lt;= 2) {
          return true;
      }
      else {
          return false;
      }
  }
  </code></pre>
  
  <p>Now I want to create another Boolean function to validate this number when both combined e.g. 215 would be true and 645 would be false.</p>
  
  <p>How can I do this?</p>
  
  <p>Thanks</p>