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 args[]) {

        LinkedList<String> ll = new LinkedList<String>();

        ll.add("B");
        ll.add("ja v a2s.com");
        ll.addLast("E");
        ll.add("F");

        LinkedList<String> newList = new LinkedList<String>(ll);

        System.out.println(newList);
    }
}