digits should be presented in reverse order

using Character.getIntegerValue instead of incorrect Integer.valueOf