I want to convert a Byte array into a byte array, but I don't see any way to do so in java without using a loop.
Can someone please tell me a way to make it ?
I want to convert a Byte array into a byte array, but I don't see any way to do so in java without using a loop.
Can someone please tell me a way to make it ?
There is no need for that, because Java has an auto-unboxing system that automatically converts Bytes to bytes. So, you can use them the same way. But if you really have to, you have to use a loop.