Java tutorial
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); } }