Browse - Programming Tips - Java: growable byte array

Date: 2019jul9
Language: Java
Keywords: StringBuilder

Q.  Java: growable byte array

A.  Use ByteArrayOutputStream

To append:

ByteArrayOutputStream ba = new ByteArrayOutputStream(); byte mybyte = 0x55; ba.write(mybyte);