V
Varun Gupta
How can we convert a primitive java int to Java byte.
byte and not byte[].
Waiting for replies.
byte and not byte[].
Waiting for replies.
How can we convert a primitive java int to Java byte.
byte and not byte[].
Waiting for replies.
There is a commons library that makes conversion very easy:
http://jakarta.apache.org/commons/codec/
0xff' is not required. The cast does that already.
sgoo said:It *is* required if you want the output be between 0 and 255.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.