IDNLearn.com provides a collaborative environment for finding and sharing answers. Ask your questions and receive detailed and reliable answers from our experienced and knowledgeable community members.

removes and returns the next item. if currently empty, the calling thread waits until another thread adds an item. if this method doesn't throw interruptedexception, then the item was successfully removed.