next and prev references of ' two new neighbors this method is given in code fragment and is illustrated (againin figure recalling the use of sentinels (section )note that this algorithm works even if is the last real position code fragment inserting an element after position in linked list figure adding anew node after the position for "jfk"(abefore the insertion(bcreating node with element "bwiand linking it in(cafter the insertion the algorithms for methods addbeforeaddfirstand addlast are similar to that for method addafter we leave their details as an exercise ( -