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!

Hex value representation & manupulation

tahirakramOct 2 2007 — edited Oct 2 2007
Hi;

I want to write hex values on a URL. So I want to know how the hex values can be represented in Java. Does it mean I compose a string with hex values and write it.

{noformat}<code class="jive-code jive-java">String data = {color:red}"0x820x440xB40x2E0x390x390x390x390x390x350x830xD1"{color};
</code>{noformat}

<ul><li>
0x is necessary prefix for hex values and in java it is also used?</li>
<li>
If I print this string to console, should it prints special characters? (which is not, it prints as it is) </li>
</ul>

I hope you will give me some pointer to process hex values in Java.

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 30 2007
Added on Oct 2 2007
4 comments
448 views