addAll(index) Method : Java.util.ArrayList

   

Declaration :

Explanation :

Purpose Method inserts the specified element E at the specified position in this list.
Parameters index ==> Index at which to insert the first element from the specified collection
c ==> 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
IndexOutOfBoundsException ==> If the index is out of range

Example

The following example shows the usage of java.util.Arraylist.addall(index, c) method.

Output :