The reset() method will reset the value of the scanner's radix to 10 regardless of whether it was previously changed. (ref)

Does your program work or what is the error message?