SyntaxFix
Write A Post
Hire A Developer
Questions
java.util.Queue is an interface so you cannot instantiate it directly. You can instantiate a concrete subclass, such as LinkedList:
java.util.Queue
LinkedList
Queue<T> q = new LinkedList<T>;