Check out example codes for "join arraylists java". It will help you in understanding the concepts better.

Code Example 1

ArrayList1.addAll(ArrayList2);

Learn ReactJs, React Native from akashmittal.com