How can I group an array of rectangles into “Islands” of connected regions?

前端 未结 8 2162
难免孤独
难免孤独 2021-02-04 08:12

The problem

I have an array of java.awt.Rectangles. For those who are not familiar with this class, the important piece of information is that they provid

8条回答
  •  没有蜡笔的小新
    2021-02-04 08:52

    You cannot remove an object from a list your iterating through, iterator object or not, you will need to find another way

提交回复
热议问题