举例:当链表总长为3时,调用delete(2)方法,node.next = node.next.next;会抛出NullPointException
举例:当链表总长为3时,调用delete(2)方法,node.next = node.next.next;会抛出NullPointException