How can i split an ArrayList of Shapes into partitions/lists in Java (Just advice)

后端 未结 1 1357
余生分开走
余生分开走 2021-01-28 02:30

I just want an advice or suggestions of how i can do it. i\'ve been thinking about it for hours now and can\'t find a solution.

My aim is to convert this ER Diagram to t

相关标签:
1条回答
  • 2021-01-28 02:35

    The easiest way to do it is to create a new object with your shape and text attribute, and override the equals method. So you could be able to retrieve the shape and the text inside the shape.

    You can also manage a second arraylist with your text, with matching index, like the shape in 0 have the text attribute in your text list in 0, but i do not recommand it, because it is really easy to create new issues.

    0 讨论(0)
提交回复
热议问题