If you mean "calculating" by adding or doing some other mathematical procedure then you will probably have to go about that manually. I dont think that there are any functions in the API that take Hex values as arguements and calculates them.
Code:
public class Test3{
public static void main(String[] args){
int i = 330;
int k = 70;
String hex1 = Integer.toHexString(i);
String hex2 = Integer.toHexString(k);
long l = calHex(hex1, hex2);
System.out.println(l);
}
public static long calHex(String hex1, String hex2){
// byte b = Byte.parseByte(hex1,16); only values under 128!
int i = Integer.parseInt(hex1,16);
int k = Integer.parseInt(hex2,16);
return i + k;
}
}