Answer:
9 10 6 4 7 1
Step-by-step explanation:
When the values are pushed to the stack they would end up in the stack in the same order as they go in.
1 7 4 6 10 9
when elements are popped from a stack they are removed from the end to the beggining of the stack, and since these elements are being added to the priorityQueue then priQue will have the following order
9 10 6 4 7 1
this will also be the order that the numbers will be printed out from left to right since priorityQueue remove method, removes the elements from left to right.