title: Converting a Double Array list to a double array
body: <p>I am wanting to convert my double ArrayList to a double array but I am unsure how. Here is my current code listing :</p>
  
  <pre><code>ArrayList&lt;Double&gt; aL= new ArrayList&lt;Double&gt;();  
  double x[] = new double[aL.size()];
  aL.add(10.0);  
  aL.add(5.0);  
  aL.add(2.0);
  for(int i =0; i &lt; x.length; i++){
  //some code
  }
  </code></pre>
  
  <p>But then I am not sure where to go and I am unable to find something on the internet/ in books to give me any insight. Thanks.</p>