Skip to Main Content

Java Programming

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!

Convert Hexadecimal string to Integer

807580Nov 16 2009 — edited Nov 16 2009
{String s=Integer.toHexString(c.getRGB() & 0x00ffffff);}
This code gives Hexadecimal String value from RGB value.
How to convert this String into Integer format.( including 0-9 and A-F)
eg. String s="0x6a0050"
The Integer format should be same as this i e 0x6a0050.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 14 2009
Added on Nov 16 2009
4 comments
566 views