shuijian-xu / bitcoin

0 stars 0 forks source link

How to append one byte array to another? #252

Open shuijian-xu opened 4 years ago

shuijian-xu commented 4 years ago

byte[] b1={1,2}; byte[] b2={3}; ByteArrayOutputStream baos = new ByteArrayOutputStream(); baos.write(data); byte[] result = baos.toByteArray(); baos.close();