the following function returns a memory address instead of the actual Node its supposed to, any input?:
public Node getNode(){
Node nextnode = new Node(this.title, this.disX, this.disY);
return nextnode;
}
When called such as:
AcNode aNode = new AcNode("Test", 0.5, 0.6)
System.out.println("See next node" + aNode.getNode());
AcNode is a subclass of Node, using the same constructor as a super. Any help?