package devmanuals.com; import java.util.Deque; import java.util.LinkedList; public class DequeOfferLast { public static void main(String[] args) { Deque dq = new LinkedList(); dq.offer(70); dq.offer(80); dq.offer(90); System.out.println("The elements of Deque are : "+ dq); System.out.println("And the size of deque : " + dq.size()); System.out.println("Now insert a new element at Last '100'"); boolean b = dq.offerLast(100); System.out.println("Then the new Elements of deque are : " + dq); System.out.println("Inserts the specified element : " + b); System.out.println("And the size of new deque = " + dq.size()); } }