All pastes #335084 Raw Edit

Untitled

public text v1 · immutable
·published 2007-02-01 02:59 UTC
rendered paste body
    /**
     * Returns the element at the specified position in this list.
     * Returns <code>null</code> if <code>index</code> is out of bounds.
     */
    public T get(int index) {
        if(index<size) {
            for(int i=0; i<=index; i++)
            {
                if(i==index)
                {
                    T match = ListElement.next;
                }
            }
            return match;
        } else {
            return null;
        }
    }