Java List Create createNullElementList(int size)

Here you can find the source of createNullElementList(int size)

Description

create Null Element List

License

Apache License

Declaration

public static List createNullElementList(int size) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.ArrayList;

import java.util.List;

public class Main {

    public static List createNullElementList(int size) {
        List lst = new ArrayList(size);
        for (int i = lst.size(); i < size; i++) {
            lst.add(null);/*from   w  w  w .j  a v a 2 s. c  o  m*/
        }
        return lst;
    }
}

Related

  1. createMultiSelectionValue(List values)
  2. createMutableList(Collection collection)
  3. createNewList(Class type)
  4. createNormalDistributionByBootstrapping( List values1, List values2, final List sums1, final List sums2)
  5. createNormativeTroopAllocation( List probs)
  6. createNullList(int numberOfElements)
  7. CreateObjectList(Object... values)
  8. createOneElementList(T element)
  9. createOrderedQuery(String attributeName, List ids)