MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;

public class MainClass {

    public static void main(String[] args) {
        Queue queue = new LinkedList();
        queue.add("Hello");
        queue.add("World");
        List list = new ArrayList(queue);

        System.out.println(list);
    }

}