//public void nextlink(/go to next link previous currentcurrent current next//public link getcurrent(/get current link return current//public void insertafter(double dd/insert after /current link link newlink new link(dd)ifourlist isempty(/empty list ourlist setfirst(newlink)current newlinkelse /not empty newlink next current nextcurrent next newlinknextlink()/point to new link //public void insertbefore(double dd/insert before /current link link newlink new link(dd)if(previous =null/beginning of list /(or empty listnewlink next ourlist getfirst()ourlist setfirst(newlink)reset()else /not beginning newlink next previous nextprevious next newlinkcurrent newlink