title: How to set a default value for items list?
body: <p>I'm trying to convert some python code to java and need to setup a default value of a list.  I know the default value, the size of the list and my goal is to setup a default value and then later in my program change them.  In python I simply do this(to create 10 items with a value of zero):</p>
  
  <pre><code>list = [0]*10  
  </code></pre>
  
  <p>I am trying to do:</p>
  
  <pre><code>List&lt;Integer&gt; list1 = Arrays.asList(0*10); // it just multiples 0 by 10.
  </code></pre>
  
  <p>It doest work, I know I can do something like this:</p>
  
  <pre><code>for(int i = 0;i&lt;10;i++)
  {
    list1.add(0); 
  }
  </code></pre>
  
  <p>I was wondering if there was an better way(instead of the for loop)? </p>