import java.util.Iterator;
import java.util.PriorityQueue;
class PriorityQueueOffer {
public static void main(String[] args) {
// creating our queue
PriorityQueue<Integer> pq = new PriorityQueue<>();
// offer is used to add elements in a queue
pq.offer(12);
pq.offer(13);
pq.offer(14);
pq.offer(15);
pq.offer(16);
pq.offer(17);
// creating another queue
PriorityQueue<Integer> pq1 = new PriorityQueue<>();
pq1.offer(18);
pq1.offer(19);
pq1.offer(20);
pq1.offer(21);
pq1.offer(22);
// printing elements of both queues
System.out.println("pq = " + pq);
System.out.println("pq1 = " + pq1);
}
}