listing linked lists continued last null/null <-last first first next/first --old next return temp/public void displaylist(system out print("list (first-->last)")link current first/start at beginning while(current !null/until end of listcurrent displaylink()/print data current current next/move to next link system out println("")//end class firstlastlist ///////////////////////////////////////////////////////////////class firstlastapp public static void main(string[args/make new list firstlastlist thelist new firstlastlist()thelist insertfirst( )thelist insertfirst( )thelist insertfirst( )/insert at front thelist insertlast( )thelist insertlast( )thelist insertlast( )/insert at rear thelist displaylist()/display the list thelist deletefirst()thelist deletefirst()/delete first two items thelist displaylist()/end main(/end class firstlastapp /display again ///////////////////////////////////////////////////////////////