Multidimensional Array with different types in java
Posted
by Christian
on Stack Overflow
See other posts from Stack Overflow
or by Christian
Published on 2010-04-09T10:51:02Z
Indexed on
2010/04/09
10:53 UTC
Read the original article
Hit count: 390
java
I want to store a data structure thats a table with one column Strings and another column of Ints.
List<Entry<String, Integer>> li = new LinkedList<Entry<String, Integer>>();
would do the job for a list but I would rather have the performance of an array.
I tried
Entry<String, Integer>[] = new Entry<String, Integer>[10];
but that doesn't seem to work.
© Stack Overflow or respective owner