Assuming the RowID is long and the column data is Doubles, I would implement this construct as:
import java.util.HashMap;
import java.util.Map;
...
Map<Long, Double[]> table = new HashMap<Long, Double[]>();
To save a string:
Long rowID = 1234L;
table.put(rowID, new Double {0.1, 0.2, 0.3});
To access the line:
Double[] row = table.get(rowID);
Replace Double [] with any desired data type Int [], String [], Object [] ...
You can skip this data with an iterator:
import java.util.Iterator;
import java.util.Map.Entry;
...
Iterator<Entry<Long, Double[]>> iter = table.entrySet().iterator();
while (iter.hasNext()) {
Entry entry = iter.next();
rowID = entry.getKey();
row = entry.getValue();
};
, LinkHashMap HashMap.