Converting a hex String to its corresponding hex value...?
807597Apr 30 2005 — edited May 1 2005Yeah, I'm having quite a bit of fun guessing this one... :p
I have a string of n characters and have used Integer.toHexString( ( int )str.charAt( i ) ) to convert each character to a string representing its hex value. Now I need to USE that value for bit-wise operations, like, say, applying the AND, OR, etc. operators...
Example:
hexvalue &= 0xC000FFFF; //the second value is the one extracted from the string;
How can achieve this...? Any help is greatly appreciated... :}