add multiple elements in arraylist java code example Example: add two arraylist oneList.addAll(secondList);