Multidimensional Array with different types in java
<p>I want to store a data structure thats a table with one column Strings and another column of Ints.</p>

<pre><code>List&lt;Entry&lt;String, Integer&gt;&gt; li = new LinkedList&lt;Entry&lt;String, Integer&gt;&gt;(); 
</code></pre>

<p>would do the job for a list but I would rather have the performance of and need the memory of an array.</p>

<p>I tried</p>

<pre><code>Entry&lt;String, Integer&gt;[]  = new Entry&lt;String, Integer&gt;[10];
</code></pre>

<p>but that doesn't seem to work.</p>

<p>Is Entry the right datatype to use?</p>
