Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.ArrayDeque;
import java.util.Deque;

public class Main {
    public static void main(String[] args) {

        Deque<Integer> deque = new ArrayDeque<Integer>(5);

        deque.add(20);
        deque.add(30);
        deque.add(20);
        deque.add(30);
        deque.add(15);
        deque.add(22);
        deque.add(11);

        System.out.println(deque);
    }
}