When I try to run this code:
import java.io.*; import java.util.*; public class TwoColor { public static void main(String[] args) { Queue&
You can use
Queue thequeue = new linkedlist();
or
Queue thequeue = new Priorityqueue();
Reason: Queue is an interface. So you can instantiate only its concrete subclass.