listing linked lists continued public link next/next link in list /public link(long dd/constructor ddata dd/public void displaylink(/display ourself system out print(ddata ")/end class link ///////////////////////////////////////////////////////////////class linklist private link first/ref to first item on list /public linklist(/constructor first null/no items on list yet /public link getfirst(/get value of first return first/public void setfirst(link /set first to new link first /public boolean isempty(/true if list is empty return first==null/public listiterator getiterator(/return iterator return new listiterator(this)/initialized with /this list /public void displaylist(link current first/start at beginning of list while(current !null/until end of listcurrent displaylink()/print data current current next/move to next link system out println("")