I have a String which represents a hexadecimal number (e.g. "5FA2"). Ideally, I would like to convert this String into an int (e.g. 0x5FA2), is there a quick way to do this ?
I can't use the method "Integer.parseInt()" since my String represents an hexadecimal and not a decimal.
Thanks in advance!