first next next next next null abefore deletion previous first current next next next null bafter deletion previous current figure deleting specified link at each cycle through the while loopjust before current is set to current nextprevious is set to current this keeps it pointing at the link preceding current to delete the current link once it' foundthe next field of the previous link is set to the next link special case arises if the current link is the first link because the first link is pointed to by the linklist' first field and not by another link in this case the link is deleted by changing first to point to first nextas we saw in the linklist java program with the deletefirst(method here' the code that covers these two possibilitiesif(current =firstfirst first nextelse previous next current next/found it /if first link/change first /otherwise/bypass link other methods we've seen methods to insert and delete items at the start of listand to find specified item and delete specified item you can imagine other useful list methods for examplean insertafter(method could find link with specified key value and insert new link following it we'll see such method when we talk about list iterators at the end of this