public void remove(int key){
if (this.head.data == key) {
this.head = this.head.next;
return;
}
Node prev = findIndex(key);
if (prev == null) {
System.out.println("没有找到这个节点");
return;
}
Node del = prev.next;
prev.next = del.next;
}