how to concatenate two arraylist in java code example Example 1: java arraylist concat array1.addAll(array2); Example 2: add two arraylist oneList.addAll(secondList);