display it thenin the while loopwe remove the items one by one with deletefirst(until the list is empty the empty list is then displayed here' the output from linklist javalist (first-->last){ { { { deleted { deleted { deleted { deleted { list (first-->last)finding and deleting specified links our next example program adds methods to search linked list for data item with specified key valueand to delete an item with specified key value thesealong with insertion at the start of the listare the same operations carried out by the linklist workshop applet the complete linklist java program is shown in listing listing the linklist java program /linklist java /demonstrates linked list /to run this programc>java linklist app ///////////////////////////////////////////////////////////////class link public int idata/data item (keypublic double ddata/data item public link next/next link in list /public link(int iddouble dd/constructor idata idddata dd/public void displaylink(/display ourself system out print("{idata "ddata "")/end class link ///////////////////////////////////////////////////////////////class linklist private link first/ref to first link on list