public void deleteall()
 {
     head = null;
 }
 public linked_list()
 {
     head = curr = temp = null;
 }
 public void deletefirt()
 {
     head = head.next;
 }
 public void insertlast(node n)
 {
     curr.next = new node(n);
 }