private Node<T> addAt(Node<T> node, T value) {
if (node == null) { // special case
return new Node<T>(value, null);
} else if (node.getNext() == null) { // other special case
node.setNext(new Node<T>(value, null));
} else if (node.getstuff().getName().compareTo(value.getName()) > 0) {
node.setNext(new Node<T>(value, node.getNext()));
} else
addAtEnd(node.getNext(), value);
}
return node;
}
so my problem is that im trying to call a method of the object in a particular node, but it keep telling me that the method inside my object class is not recognized, cannot find symbol, in this case, the getName method, any ideas?