How can i split an ArrayList of Shapes into partitions/lists in Java (Just advice)
问题 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 tables. So i have a Rectangle(Entity) that is linked to an ellipse(Attribute). I've already worked out on the collisions of the shapes where the line will retrieve the object that is linked to it. See the picture below: the result will be as follows when the above diagram is drawn: LINE(1) COLLIDES WITH RECTANGLE OF INDEX(0) LINE