[java] Retrieving the first digit of a number