How to add byte [] to the <Byte> list?
2 answers
Using Guava , you can use Bytes.asList (bytes ...) as follows:
List<Byte> list = ...
byte[] bytes = ...
list.addAll(Bytes.asList(bytes));
+5
Using Guava , you can use Bytes.asList (bytes ...) as follows:
List<Byte> list = ...
byte[] bytes = ...
list.addAll(Bytes.asList(bytes));