Hi.
I have a recursive public static method search that takes a Tree node (any arbitrary binary tree, not necessarily a search tree) and returns whether or not that tree satisfies the order property for a binary search tree. So, my method is
public static boolean search(TN t)
{
if (t == null)
return true;
else
if (t.value == t.next.value)
return search(?); // I don't know what I should put there
else if (toFind < t.value)
return search(t.left, t.next.value);
else
return search(t.right,t.next.value);
}