concat an array with an arraylist java code example Example: java arraylist concat array1.addAll(array2);