/make new link link newlink new link(dd)newlink next first/newlink --old first first newlink/first --newlink /public double deletefirst(/delete first item /(assumes list not emptylink temp first/save reference to link first first next/delete itfirst-->old next return temp ddata/return deleted link /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("")//end class linklist ///////////////////////////////////////////////////////////////class linkstack private linklist thelist//public linkstack(/constructor thelist new linklist()//public void push(double /put item on top of stack thelist insertfirst( )/