I'm getting the errors of "q cannot be resolved to a variable" and "Queue cannot be resolved to a type"... I'm not sure what I did wrong but if you guys can help, that would be great! The error is within q = new Queue<File>();
Queue.java:
package filesystem;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Arrays;
import java.util.NoSuchElementException;
public class LevelOrderIterator extends FileIterator<File> {
public LevelOrderIterator(File rootNode) throws FileNotFoundException {
if (!rootNode.exists())
throw new FileNotFoundException();
q = new Queue<File>();
q.enqueue(rootNode);
}