why am I getting an endless loop in this implementation of addlast to linkedlist

Printable View