MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

import java.util.Collections;
import java.util.LinkedList;
import java.util.List;

public class MainClass {
    public static void main(String[] a) {
        List list = new LinkedList(Collections.nCopies(10, null));
        System.out.println(list);
    }
}