I have an ArrayBlockingQueue declared like this:
private BlockingQueue<E> queue = new ArrayBlockingQueue<E>();
now I have to access to a specific element of this queue. I have a method
public E takeElement(int j)
{
//some code
}
and I have to take the j-element of the queue. How can I do that?? thx