diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 200b51a..68af218 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,15 +3,7 @@ - - - - - - - - @@ -172,7 +164,7 @@ - + diff --git a/Queues/src/RandomizedQueue.java b/Queues/src/RandomizedQueue.java index 555da70..8677e72 100644 --- a/Queues/src/RandomizedQueue.java +++ b/Queues/src/RandomizedQueue.java @@ -116,6 +116,9 @@ public Iterator iterator() { private class RandomizedQueueIterator implements Iterator { private int i; + public RandomizedQueueIterator() { + i = 0; + } @Override public boolean hasNext() { return randomizeQueues[i] != null; diff --git a/out/production/Queues/Node.class b/out/production/Queues/Node.class deleted file mode 100644 index 7ba2d4a..0000000 Binary files a/out/production/Queues/Node.class and /dev/null differ diff --git a/out/production/Queues/RandomizedQueue$RandomizedQueueIterator.class b/out/production/Queues/RandomizedQueue$RandomizedQueueIterator.class index d138432..0736848 100644 Binary files a/out/production/Queues/RandomizedQueue$RandomizedQueueIterator.class and b/out/production/Queues/RandomizedQueue$RandomizedQueueIterator.class differ diff --git a/out/production/Queues/RandomizedQueue.class b/out/production/Queues/RandomizedQueue.class index e67fd8f..8a59c46 100644 Binary files a/out/production/Queues/RandomizedQueue.class and b/out/production/Queues/RandomizedQueue.class differ