I am getting a number format exception when trying to do it
int temp = Integer.parseInt(\"C050005C\",16);
if I reduce one of the digits in
Use this:
long temp = Long.parseLong("C050005C",16);