"Неверные типы операндов для бинарного оператора ">"
первый тип: java. lang.Object
второй тип: java.lang.Object"
Это метод, который дает мне ошибка:
Код: Выделить всё
public void placeNodeInTree(TreeNode current, TreeNode t)
{
if(current == null)
current = t;
else{
if(current.getValue() > t.getValue())
current.setRight(t);
if(current.getValue() < t.getValue())
current.setLeft(t);
}
}
Подробнее здесь: https://stackoverflow.com/questions/940 ... y-operator