Package java.util
Class LinkedList

Public Method remove

Object remove(int index)

Overrides:

boolean remove(Object o)

Overrides:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Removes the element at the specified position in this list. Shifts any subsequent elements to the left, and returns the element that was removed from the list.

Example

   LinkedList linkedList = new LinkedList();
   linkedList.add("L");
   linkedList.add("i");
   linkedList.add("n");
   linkedList.add("List");
   linkedList.add("k");
   linkedList.add("e");
   linkedList.add("d");

   Logger.log(linkedList.toString());
   linkedList.remove("List");
   Logger.log(linkedList.toString());

The remove method removes the specified element for the list.