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!

To find the hex value of a character???

807599Apr 2 2007 — edited Apr 2 2007
hi friends,
How can v find the hexadecimal value of a character in java ?

For example i ve a string "java". i need the output to be the corresponding hexadecimal value of that string. ie, j ->6A, a->61, v->76, a->61.
so the o/p should be
6A 61 76 61

pls anybody help me. also pls tell me how can we know such methods r ther..

thnxs in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 30 2007
Added on Apr 2 2007
4 comments
398 views