I need to implement some kind table-like data structure that stores info like this in Java:
+--------+-------+-----+ | sij | i | j | +--------+-----
One option is to create a new object that contains the 3 variables, and then make an array/tree of those objects, and sort by the parameter you want.