title: ID check char Method?
body: <p>I'm stuck in my code I have everything initialize I need to find 
  An employee’s ID is of the length of 8 or more characters and is composed of only capital letters
  and digits. The first two characters must be capital letters and the ID must contain at least 2 digits. Write
  a method that takes an employee’s ID as an array of characters and returns true if the ID is valid and false
  otherwise.
  I have my code but it won't increment once it finds the first two indexes if they are Capital letters</p>
  
  <pre><code>public static boolean isValidID(char [] id) {      
  
        if(id.length &gt;= 8)
        {
          validLen = true;
        }
        else if(id.length &lt; 8)
        {
           validLen = false;
        }
  
        for(int i = 0; i &lt; id.length; i++)
        {  
              if(Character.isUpperCase(0))
              {
                 check2Cap++;
              }
              else if(Character.isUpperCase(1))
              {
                 check2Cap++;   
              }
              else if(Character.isDigit(i))
              {
                 check2Digits++;
              }          
  
       }  
       if(check2Cap == 2)
       {
          checkCapital = true;
       }
       if(check2Digits &gt;= 2)
       {
          checkDig = true;
       } 
       return validLen &amp;&amp; checkCapital &amp;&amp; checkDig;
  }
  </code></pre>