/delete link /(assumes non-empty listlink previous null/start at first link current first/until end of listwhile(current !null &key !current idata/or key =currentprevious currentcurrent current next/go to next link /disconnect link if(previous==null/if beginning of list first first next/delete first link else /not at beginning previous next current next/delete current link /end delete(/public link find(int key/find link link current first/start at first /until end of listwhile(current !null &current idata <key/or key too smallif(current idata =key/is this the linkreturn current/found itreturn link current current next/go to next item return null/didn' find it /end find(/public void displaylist(system out print("list (first-->last)")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("")/end class sortedlist ///////////////////////////////////////////////////////////////