hex « decimal « Java Data Type Q&A





1. 2's complement hex number to decimal in java    stackoverflow.com

I have a hex string that represents a 2's complement number. Is there an easy way (libraries/functions) to translate the hex into a decimal without working directly with its bits?? E.G. This ...

2. Decimal to Hex    forums.oracle.com

I've been banging my head against the desk for hours on this one. I really need to write a Java applet to convert decimals to hex, I really would appreciate any help given with this one. So far I only have this; value1 = (decimal % 16); problem is, I don't know how to get the value and then do the ...