You can convert yourInt to bytes by using a ByteBuffer like this:
return ByteBuffer.allocate(4).putInt(yourInt).array();
Beware that you might have to think about the byte order when doing so.
You can convert yourInt to bytes by using a ByteBuffer like this:
return ByteBuffer.allocate(4).putInt(yourInt).array();
Beware that you might have to think about the byte order when doing so.