There are two overloaded versions of the .remove() method. Both of them simply remove a record from an instance of an ArrayList object. There are some things to look out for when it comes to ArrayList objects that contain Integer wrapper class objects.
E remove(int index) - removes the element at the index and returns an instance of the element that was removed.
boolean remove(Object o) - removes the first element in the ArrrayList that matches the object argument, returns true if removed.
Ещё видео!