parse int in java for base 10