Light editing

I didn't change your algorithm, just a little formatting, and method choice.
Character.getNumericValue() returns the int value for the chars 0-9.
I love that magic number hack, I just had to add it.