Online Java Compiler By
JavaTpoint.com
import java.util.concurrent.LinkedBlockingDeque; public class LinkedBlockingDequeGetLastExample2 { public static void main(String[] args) { int capacity = 200; LinkedBlockingDeque
lbdeque = new LinkedBlockingDeque
(capacity); System.out.println("Last element in the Queue is : "+lbdeque.getLast()); } }
Output