I'd like store data in form of a data table, which looks like this:
+--------+-------+-----+-----+
|        |   s1  |  s2 |  s3 |
+--------+-------+-----+-----+
|   c1   |   5   |  7  |  7  |
+--------+-------+-----+-----+
|   c2   |   1   |  6  |  9  |
+--------+-------+-----+-----+
|   c3   |   0   |  9  |  6  |
+--------+-------+-----+-----+
What is a good way to store this in java, so that I can retrieve the data by their keys.
I need a method which looks like this:
public int getData(String row, String column);
// Example:
int i = getData("c1", "s1") // Would return 5