java dynamic array sizes?
<p>I have a class xClass that I want to load in to an array of xClass so I have a declaration like</p>

<pre><code>xClass mysclass[] = new xClass[10];
myclass[0]= new xClass();
myclass[9]= new xClass();
</code></pre>

<p>The problem is I dont know if I will need 10. I may need 8 or 12 or any other number for that matter. I won't know until runtime. Can I change the number of elements in an array on the fly? If so, how?</p>

<p>Many thanks for any help you may be able to provide</p>

<p>Paul</p>
