Package java.util
Class LinkedList
Description:
Returns the indes in this list of the first occurence of the specified element, or -1 if the list dose not contain this element. This method returns the lowest index i such that (o==null ? get(i)==null :o.equals(get(i))), or -1 if there is no such index.
Example
LinkedList linkedList = new LinkedList();
linkedList.add("Linked");
linkedList.add("List");
Logger.log("The index of List: " + linkedList.indexOf("List"));
The indexOf method returns the index of the specified element.