![]() |
VOOZH | about |
The addAll() method of LinkedBlockingDeque appends all of the elements of the specified collection to the end of this deque.
Syntax:
public void addAll(Collection<E> c)
Parameters: This method accepts a mandatory parameter c which is the collection to be inserted in the end of the LinkedBlockingDeque.
Return Value: This method does not returns anything.
Exceptions: There are 2 exceptions present:-
Below program illustrates the addAll() function of LinkedBlockingDeque class:
Example1:
Example 2: