This code is a table that has an option to Inert name, delete, show, and quit .
this code run\'s well but my only problem is on how to delete a chosen name in a nod
while (node != null) {
if (node.getNext() == null || head.getNext() == null) {
break;
} else if (head.getData() == data) {
head = head.getNext();
} else if (node.getNext().getData()==null&&data==null||node.getNext().getData().equals(data)) {
node.setNext(node.getNext().getNext());
} else {
node = node.getNext();
}
}
}
return head;