public class ThreadedNode { private BinaryNode head; public ThreadedNode(BinaryNode root) { head = new BinaryNode(); root.makeThreaded(); root.setRight(head); head.setRight(root); } }
public class ThreadedNode { private BinaryNode head; public ThreadedNode(BinaryNode root) { head = new BinaryNode(); root.makeThreaded(); root.setRight(head); head.setRight(root); } }