What is the easy way to concatenate two byte arrays?
byte
Say,
byte a[]; byte b[];
How do I concatenate two byte
You can use third party libraries for Clean Code like Apache Commons Lang and use it like:
byte[] bytes = ArrayUtils.addAll(a, b);