You can convert an hexadecimal string into an int in Java with the following code:

 int i = Integer.valueOf(myHexString, 16).intValue();