Hello,
I am writing a program which needs at a certain point the use of priority queues. For that I use java.util.PriorityQueue. The problem is that javac refuses to compile my code, and I just don't understand why. For the following code :
// ...
import java.util.PriorityQueue;
// ...
it says
Error : The import java.util.PriorityQueue cannot be resolved
WHY? It is supposed to be there!!
Even with
// ...
import java.util.*;
// ...
PriorityQueue q = new PriorityQueue();
or
// ...
import java.*;
// ...
PriorityQueue q = new PriorityQueue();
it gives
Error : PriorityQueue cannot be resolved to a type
What is the problem?