How do I verify that an integer value within a large number in a certain position is a certain value in Java?
<p>I've searched all over and saw different variances.  But neither seemed to work for me :(  So in Java how can I check the value of a certain position of large integer?  I want to have a check to ensure that the 1st position in any number like 678954 is a value of 4.  What built in Java class is there to check the value of an integer within an certain position?  I would assume there is something built in like .charAt for this?  Like below I want to ensure the 1st position in the integer is a '0'.  If I missed a previous answer to this same question that has happened before please excuse me.  If so could you post the link from it in Stackoverflow? Oh I saw something about Character.getNumericValue, I tried that and got the same "int can not be dereferenced" error.  </p>

<p>if(getEmployeeId().charAt(0) == '0')</p>

<p>Cheers!</p>
