Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.LinkedList;

public class Main {
    public static void main(String[] argv) throws Exception {

        LinkedList queue = new LinkedList();
        Object object = "";
        // Add to end of queue
        queue.add(object);

        // Get head of queue
        Object o = queue.removeFirst();
    }
}