Online Java Compiler By
JavaTpoint.com
import java.util.concurrent.LinkedBlockingDeque; public class LinkedBlockingDequeElementExample3 { public static void main(String[] args) { int capacity = 100; LinkedBlockingDeque
deque = new LinkedBlockingDeque
(capacity); deque.add(null); deque.add("Sham"); deque.add("Mira"); deque.add("Rajesh"); System.out.println("First string : "+deque.element()); } }
Output