How in Java do you return the first digit of an integer.?
i.e.
345
Returns an int of 3.
I think more simple to do :
int firstDigit = i-(i/10)*10 // i is an integer or long value, positive or negative.