# BREAKOUT Project - Help with collision detection

**URL:** https://discourse.processing.org/t/breakout-project-help-with-collision-detection/16546
**Category:** Coding Questions
**Created:** [December 21, 2019, 1:12pm UTC](https://discourse.processing.org/t/breakout-project-help-with-collision-detection/16546 "2019-12-21T13:12:28Z")
**Posts on this page:** 1
**Showing post:** 15

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [December 22, 2019, 6:31am UTC](https://discourse.processing.org/t/breakout-project-help-with-collision-detection/16546/15 "2019-12-22T06:31:22Z")

</div>

> [@dunkinsa](#):
>
> I had a look at “remove” for the ArrayList, how do you actually use it in the actual code in order to make the bricks disappear?

> [@Help with a short game code](https://discourse.processing.org/t/help-with-a-short-game-code/11108/2):
>
> We can’t use method remove() when using an “enhanced” for ( : ) {} style! no_entry_sign Use a vanilla for ( ; ; ) {} style instead. Preferably, w/ backwards iteration: back

[Studio.ProcessingTogether.com/sp/pad/export/ro.PKnDDqu1vYo](http://Studio.ProcessingTogether.com/sp/pad/export/ro.PKnDDqu1vYo)

- [Problem regarding ArrayList - Processing 2.x and 3.x Forum](http://Forum.Processing.org/two/discussion/22678/problem-regarding-arraylist#Item_7)

---

_[View the full topic](https://discourse.processing.org/t/breakout-project-help-with-collision-detection/16546)._
