Computer Science, asked by annny2428, 1 year ago

How to concatenate two arrays in java?

Answers

Answered by simrannehra936
0

In order to combine (concatenate) two arrays, we find its length stored in aLen and bLen respectively. Then, we create a new integer array result with length aLen + bLen. Now, in order to combine to both, we copy each elements in both arrays to result by using arraycopy() function.

Similar questions