import java.util.*; <br /> public class PQ { <br /> public static void main(String[] args) { <br /> PriorityQueue<string> pq = new PriorityQueue<string>(); <br /> pq.add(”carrot”);<br /> pq.add(”apple”); <br /> pq.add(”banana”); <br /> System.out.println(pq.poll() +”:” + pq.peek());<br /> } <br /> } <br /> What is the result?() </string></string>
A、 apple:apple
B、 carrot:apple
C、 apple:banana
D、 banana:apple
E、 carrot:carrot
F、 carrot:banana