All pastes #335180 Raw Edit

Miscellany

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