title: Java: ArrayList for storing doubles
body: <p>A very basic question but I am having a little bit of trouble, I am very new to Java (my only experience prior is VB.NET which I developed on for a couple of years but never really used any OOP principles)</p>
  
  <p>I need an array implementation for a load of decimal numbers. I'm not sure how many I'll have so I need an array which can dynamically change it's size and I've been told an ArrayList is the way to go. </p>
  
  <p>So I've tried this:</p>
  
  <pre><code>ArrayList&lt;double&gt; xCo = new ArrayList&lt;double&gt;();
  </code></pre>
  
  <p>And my compiler gets angry and asks me for a "reference" in space of where double goes. I'm certain I'm misunderstanding something the whole declaration process of these things so how am I supposed to go about doing it? </p>
  
  <p>Thanks in advance :)</p>