All pastes #335076 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-02-01 02:51 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) {
        int counter=0;
        ListElement node = null;
        while(ListElement.next != null)
        {
            if(index==counter)
            {
                node = ListElement.next;
            }
            counter++;
        }
        return node;
    }