addAll() Method : Java.util.ArrayList

   

Declaration :

Explanation :

Purpose Method inserts the specified element E at the specified position in this list.
Parameters c ==> This is the collection containing elements to be added to this list
Return Value True if this list changed after calling method
Exception NullPointerException ==> If the specified collection is null

Example

The following example shows the usage of java.util.Arraylist.add(E) method.

Output :