Skip to content

Commit 27e2158

Browse files
committed
Fixed recursive call to toString() method in BinaryTreenode class.
1 parent e2ea556 commit 27e2158

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/chapter06trees/BinaryTreeNode.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public String toString() {
7575
}
7676
else {
7777
String root, left = "null", right = "null";
78-
root = this.toString();
78+
root = this.toString1();
7979
if (getLeft() != null) {
8080
left = getLeft().toString();
8181
}

0 commit comments

Comments
 (0)