Online Java Compiler By
JavaTpoint.com
import java.util.concurrent.LinkedBlockingDeque; public class LinkedBlockingDequeGetFirstExample1 { public static void main(String[] args) { int capacity = 200; LinkedBlockingDeque
lbdeque = new LinkedBlockingDeque
(capacity); lbdeque.add(987); lbdeque.add(445); lbdeque.add(258); lbdeque.add(741); lbdeque.add(963); lbdeque.add(852); System.out.println("First element in the Queue is : "+lbdeque.getFirst()); } }
Output