Is there a way to convert a String (in hex format) into a Integer? I know of Integer.parseInt(string, 16), but it does not handle the 0x prefix. I’m looking something to the effect of Integer.decode(string) from standard Java.
Thanks in advance.
1 Answer