In many implementations they will perform costly linear searches.It is not inconceivable that someone might wish to implement a list that prohibits duplicates, by throwing runtime exceptions when the user attempts to insert them, but we expect this usage to be rare.Attempting to query the presence of an ineligible element may throw an exception, or it may simply return false; some implementations will exhibit the former behavior and some will exhibit the latter.

Such exceptions are marked as "optional" in the specification for this interface.Mailing list, collection of names and addresses to send material to multiple recipients.More formally, lists typically allow pairs of elements e1 and e2 such that.equals(e2), and they typically allow multiple null elements if they allow null elements at all.

A method is provided to obtain a list iterator that starts at a specified position in the list.March 22, 2019 10 Of Historys Most Scandalous Women.The user of this interface has precise control over where in the list each element is inserted.