remove() Method : Java.util.ArrayList

   

Declaration :

Explanation :

Purpose Method removes the element at the specified position in this list
Parameters index ==> The index of the element to be removed
Return Value Element that was removed from the list
Exception IndexOutOfBoundsException ==> if the index is out of range

Example

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

Output :