We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f7749d commit 19ca2d9Copy full SHA for 19ca2d9
group17/1264835468/src/assignment/BinaryTree.java
@@ -77,7 +77,7 @@ public BinaryTreeNode<T> deQueue() {
77
throw new QueueIsEmptyException();
78
}
79
80
- public MyQueue<BinaryTreeNode<T>> getBFSNodeQueue() {
+ public MyQueue<BinaryTreeNode<T>> getResult() {
81
prepare();
82
MyQueue<BinaryTreeNode<T>> result = new MyQueue<>();
83
while (!isEmpty()) {
@@ -114,7 +114,7 @@ public Iterator<BinaryTreeNode<T>> iterator() {
114
115
116
private class BFSIterator implements Iterator<BinaryTreeNode<T>> {
117
- MyQueue<BinaryTreeNode<T>> BFSQueue = new BFSNodeQueue().getBFSNodeQueue();
+ MyQueue<BinaryTreeNode<T>> BFSQueue = new BFSNodeQueue().getResult();
118
119
@Override
120
public boolean hasNext() {
0 commit comments