Is there any java utility to convert string to hex value (integer) ?
Try some of the methods of the Integer class:
Integer.toHexString(Integer.parseInt(myString, 10))
This assumes that your original string is an integer base ten.