title: Java ArrayList of Doubles
body: <p>Is there a way to define an <code>ArrayList</code> with the <code>double</code> type? I tried both </p>
  
  <pre><code>ArrayList list = new ArrayList&lt;Double&gt;(1.38, 2.56, 4.3);
  </code></pre>
  
  <p>and </p>
  
  <pre><code>ArrayList list = new ArrayList&lt;double&gt;(1.38, 2.56, 4.3);
  </code></pre>
  
  <p>The first code showed that the constructor <code>ArrayList&lt;Double&gt;(double, double, double)</code> is undefined and the second code shows that dimensions are required after <code>double</code>.</p>