i have a boolean method i must right. imputing the number and if number doesnt exist return false otherwise return true. this is what i have so far.
public boolean contains(T x)
{
Node current = new Node(x, null, null);
if(current.next != x)
{
return false;
}
return true;
}