All pastes #335068 Raw Edit

Unnamed

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