Is there any java utility to convert string to hex value (integer) ?
When you have a string starting with 0x or #
Integer.decode(hexStr);
is the goal
Or
Integer.parseInt(hexString, 16);