public T removeFirst() { if(size==0) { return null; } else { ListElement tmp = first; first = tmp.next; return tmp.data; } }