public static <T> T justDoIt(______/* (1) INSERT TYPE HERE */ ____ <T> collection){
return collection.poll();
}
There may be more than one correct answer.
(a) PriorityQueue
(b) LinkedList
(c) Queue
(d) TreeSet
(e) LinkedHashSet
Here is the question. It is part of my homework assignment for chapter 7 in the SCJP study guide. I keep looking over the book but cannot figure it out.... Right now I am leaning towards A and B for the answer....Can anyone help me understand the problem and figure out which answers are correct?