remove(obj) Method : Java.util.ArrayList

   

Declaration :

Explanation :

Purpose Method removes the first occurrence of the specified element from this list
Parameters obj ==> The element to be removed from this list if present
Return Value True if list contained the specified element else the list is unchanged
Exception NA

Example

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

Output :