And if the player collides with a block, it would stop falling, and vice versa.But, since it checks with each block,it would be true that it collided with one block, but since it didn't collide with the rest,it would start falling again.

It's very hard for me to solve this problem,could somebody help? If you need more source code, I'll provide a link.And this is not the same problem as the "Rectangle.intersects" problem I had.

@sugarrush break can be used with for loops also. If you have nested loops (a loop in a loop) you can break them by naming the loops and then breaking that (for example naming your outer loop 'out' so then you could do break 'out'

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org