How do I get the nth item in a queue in java?
<p>I have a number of queues and priority queues in my application. I would like to easily access the nth items in these queues, but don't see an easy way to do that using the API. I guess I could create an iterator and iterate to the nth or use toArray()[index]--but it seems like there should be an easier way. </p>

<p>Am I missing something?</p>
