Arrays of different types
<p>Is it possible to have an array that contains two different types of data? I want to have an array that contains a double and also a string. I attempted:</p>

<pre><code>ArrayList&lt;double&gt;&lt;String&gt; array;
</code></pre>

<p>But that didn't work.</p>

<p>Sorry for the silly question, but it has been a while since I have used something like this.. Can you refresh my memory on how would I declare and populate such an array?</p>

<p>And then to take it a step further, I would like to sort the array by the double if possible?</p>

<p>Thanks!</p>
