/** * Inserts the given element at the beginning of this list. */ public void addFirst(T element) { ListElement.next = first; first = new ListElement(element); size++; }