java - Peeking deep into Queue -


i'm using blockingqueue, , want able peek next elements in queue. queue.peek() gives me first next element, need go deeper.

is there standard way, or should implement myself (which includes dealing thread safety issues)?

understand data structure using , purpose of it.

you can same job different data structures [list,set,array,vector,stack,queue , on]. of them have own features.

queue used fifo, access elements in same way, to access next element, first element should moved out of it.


Comments

Popular posts from this blog

php - get table cell data from and place a copy in another table -

javascript - Mootools wait with Fx.Morph start -

php - Navigate throught databse rows -