Online Java Compiler By
JavaTpoint.com
import java.util.concurrent.LinkedBlockingDeque; public class LinkedBlockingDequeAddAllExample3 { public static void main(String[] args) { LinkedBlockingDeque
deque = new LinkedBlockingDeque
(); deque.add(23); deque.add(123); deque.add(12); deque.addAll(deque); System.out.println("Deque : "+deque); } }
Output