Is there a way of calculating two hexadecimal value without converting it to int?
for example:
String sHex = "f7c0";
String bHex = "040000000";
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Hexadecimal values are integers – just represented in hex instead of decimal.
Can’t you just do this?
If not, then you actually meant:
In which case, the fastest way to do this is still by converting them to integers, using something like
Integer.parseInt(sHex, 16);