/** * Removes and returns the first element from this list. * Returns null if the list is empty. */ public T removeFirst() { if(size==0) { return null; } else { T tmp = first; first = ListElement.next; // REMOVE HERE!!! return tmp; }