Removes a single instance of the specified element from this list, if it is present.
Removes a single instance of the specified element from this list, if it is present.More formally, removes an element e such that (o==null ? e==null : o.equals(e)), if the list contains one or more such elements. Returns true if the list contained the specified element (or equivalently, if the list changed as a result of the call).
This method has a time complexity of O(N), with N being the size of the list.