title: add values to double[] arraylist
body: <p>I have the following array</p>
  
  <pre><code>ArrayList&lt;double[]&gt; db_results = new ArrayList&lt;double[]&gt;(); 
  </code></pre>
  
  <p>and I would like to add values like this </p>
  
  <pre><code>db_results.add(new double[] {0,1,2});
  </code></pre>
  
  <p>but in a loop like this</p>
  
  <pre><code>for ( int i = 0 ; i &lt;= 2; i++) {
      double val = Double.parseDouble(i);
      db_results.add(new double[] {val});
  }
  </code></pre>
  
  <p>obviously this is adding a new array each time with the single value... so how do I get it to add all into one array?</p>