How to merge two arrays in java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to merge two arrays in java?

22nd Oct 2016, 2:42 PM
Happy Kukreja
Happy Kukreja - avatar
2 Answers
0
String[] both = (String[])ArrayUtils.addAll(first, second); if you use java, try this
22nd Oct 2016, 4:16 PM
Neo
Neo - avatar
0
using the method add of arrays, and import the utils class
22nd Oct 2016, 4:17 PM
Neo
Neo - avatar