When you call remove(object o) on an arraylist in java, how does it compare the objects to find the correct one to remove? does it use the pointer? or does it compare the ob
Removes a single instance of the
specified element from this
collection, if it is present (optional
operation). More formally, removes an
element e such that (o==null ? e==null
: o.equals(e)), if the collection
contains one or more such elements.