Java tutorial
//package com.java2s; //License from project: Open Source License import java.util.ArrayList; import java.util.List; public class Main { public static List<String> getZeroList(final int size) { final ArrayList<String> resList = new ArrayList<String>(size); for (int i = 0; i < size; i++) { resList.add("0"); } return resList; } }