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!

Creating a byte using the hex code

807605Sep 24 2007 — edited Sep 24 2007
Hello,

I'm trying to create a set of bytes, and I know I can hard code them (i.e 0x13, 0x24, 0x42 etc).

Two questions:

1. Are those byte representations hex values? hex(13) hex(24) hex(42)

2. Can you create bytes dynamically, once you know the number. Like if you had the numbers 13, 24, 42, could you create bytes with them?

Thanks in advance to anyone who knows the answers

Clay
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 22 2007
Added on Sep 24 2007
11 comments
563 views