| Author |
Queue compile error
|
meeta gaur
Ranch Hand
Joined: Dec 05, 2012
Posts: 225
|
|
PriorityQueueMethods.java: error: cannot infer type arguments for PriorityQueue<>;
Queue<Integer> intQueue=new PriorityQueue<>(5,rs);
^
reason: no instance(s) of type variable(s) E exist so that PriorityQueue<E> conforms to Queue<Integer>
where E is a type-variable:
E extends Object declared in class PriorityQueue
1 error
|
OCAJP
|
 |
meeta gaur
Ranch Hand
Joined: Dec 05, 2012
Posts: 225
|
|
|
Yea, i got my mistake.
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32599
|
|
|
And what was the mistake?
|
 |
 |
|
|
subject: Queue compile error
|
|
|