Package java.util
Class LinkedList

Public Method addFirst

void addFirst(Object o)

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Inserts the given element at the beginning of this list.

Example

   LinkedList linkedList = new LinkedList();
   linkedList.add("List");

   linkedList.addFirst("Linked");

   Logger.log(linkedList.toString());

The example above constructs a new LinkedList, adds elements to the list, and inserts an element at the beginning of this list.