What is the easy way to concatenate two byte
arrays?
Say,
byte a[];
byte b[];
How do I concatenate two byte
arrays and store it in another byte
array?
arraysconcatenationjava
What is the easy way to concatenate two byte
arrays?
Say,
byte a[];
byte b[];
How do I concatenate two byte
arrays and store it in another byte
array?
Best Answer
The most elegant way to do this is with a
ByteArrayOutputStream
.