public void delete(T t) {
		for(ListNode<T> node=head; node!=null&&node.next!=null; node=node.next) {
			ListNode<T> nextNode = node.next;
			if(nextNode.value.equals(t)) {
				if(nextNode == tail) {
					tail = node;
					tail.next = null;
				} else {
					node.next = node.next.next;
				}
			}
		}
	}