Anonymous Anonymous - 1 month ago
304 0

error: bad operand types for binary operator '>'
if(!IsEmpty() && !(x>tail))
^
first type: int
second type: Node

Java

List.JAVA

public void SetPos(int pos)
	{
           if(!IsEmpty() && !(pos>tail))
                curr=pos;
	}