Package java.util
Class LinkedList
int lastIndexOf(Object o)
Overrides:
_INSERT_METHOD_SIGNATURE_HERE_
Description:
Returns the index in this list of the last occurrence of the specified element, or -1 if the list does not contain this element. This method returns the highest 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");
linkedList.add("Linked");
linkedList.add("List");
Logger.log("the last index: " + linkedList.lastIndexOf("Linked"));
The lastIndexOf method returns the index of the last occurence of the specified element in this list.