I have two byte arrays and I am wondering how I would go about adding one to the other or combining them to form a new byte array.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’re just trying to concatenate the two
bytearrays?Or you could use
System.arraycopy:Or you could just use a
Listto do the work:Or you could simply use
ByteBufferwith the advantage of adding many arrays.