All pastes #335159 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-02-01 04:15 UTC
rendered paste body
    /**
     * Inserts the given element at the beginning of this list.
     */
    public void addFirst(T element) {
        ListElement.next = first;
        first = new ListElement(element);
        size++;
    }