Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Converting a hex String to its corresponding hex value...?

807597Apr 30 2005 — edited May 1 2005
Yeah, 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... :}
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 29 2005
Added on Apr 30 2005
2 comments
298 views