title: Populate int array with for loop in Java
body: <p>I have an array named numbers that I want to populate with a for loop:</p>
  
  <pre><code>    int[] numbers;
  
      for ( int i = 0; i &lt;=10; i++)
      {
          // want to populate the array with a sequence of 0-10
      }
  </code></pre>
  
  <p>How can I populate the 11 values generated from the above for loop into my array?</p>