twc
Posts: 129
Nickname: twc
Registered: Feb, 2004
|
|
Re: convert an int into a byte array
|
Posted: Mar 23, 2004 12:21 PM
|
|
I don't really understand what an int and a byte array have to do with one another. What mausam showed you DOES take data from an int and put it in a byte array. It just uses a String as an intermediate step.
So if you start with an int of 274, you get a byte array with the first element being 2, the second being 7, and the third being 4. If that isn't what you need to do, then you need to explain the goal in more detail.
By itself, the phrase "convert an int into a byte array" has no meaning.
twc
|
|