title: Faster way to find out if a number starts with 2?
body: <p>In Java - what is the faster way to find if the given integer number is starting with the digit 2 without having to convert the number into a string?</p>
  
  <pre><code>String.valueOf(number).charAt(0) == '2'
  </code></pre>