title: Simple math issue?
body: <p>For simplicity's sake, I've got the following method to calculate whether the number inputted is binary (only accepts 1's and 0's)</p>
  
  <pre><code>public static void checkBinary(int BinaryNumber) {
      String bNumber = String.valueOf(BinaryNumber);
      char[] Digits = bNumber.toCharArray();
      for (int i = 0; i &lt; Digits.length; i++) {
          if (Digits[i] &gt; 1) {
              System.out.println("You can't have the digit " + Digits[i]);
              System.out.println("Your number is not a binary number.");
              System.exit(0);
          }
      }
  }
  </code></pre>
  
  <p>However when I try running <code>checkBinary(1010);</code> I get the following output</p>
  
  <pre><code>You can't have the digit 1
  Your number is not a binary number.
  </code></pre>
  
  <p>Any idea why it's counting the initial 1 as greater than 1?</p>
  
  <p>Thanks in advance guys!</p>