Hex to Int

Hey guys, can someone help me out here ..... i need to convert hex to int. I'm relatively new to java. Kindly bail me out here


Check out the Integer static method with the signature:
public static int parseInt(String s, int radix) throws NumberFormatException
You should note that "int" is a primitive java type for (nonfactional)
numbers, and "hex" is (presumably) a String. That is they are very
different sorts of thing. The "radix" in the method referred to above
is 16 in the case of hex strings.
There is also a static decode(String) method.
You can read about both here: http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Integer.html