Just a correction on the automated method that java provides for this.


parseInt(String s, int radix)

for more visit the api