To add all the elements of an array list to a new array list, we use the addAll() method. For example,
Output