Online Java Compiler By
JavaTpoint.com
import java.util.concurrent.LinkedBlockingDeque; public class LinkedBlockingDequeAddLastExample4 { public static void main(String[] args) { int capacity=4; LinkedBlockingDeque
deque = new LinkedBlockingDeque
(capacity); deque.add("Disha"); deque.add("Tanmay"); deque.add("Prachi"); deque.addLast(null); System.out.println("Deque : "+deque); } }
Output