Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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

public class Main {

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

        System.out.println(list);
    }

}