Table like java data structure

前端 未结 7 1795
星月不相逢
星月不相逢 2020-12-03 01:14

I need to implement some kind table-like data structure that stores info like this in Java:

+--------+-------+-----+
|  sij   |   i   |  j  |
+--------+-----         


        
7条回答
  •  囚心锁ツ
    2020-12-03 01:38

    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.

提交回复
热议问题