I need to iterate through 2 arraylists for collision purposes.
I have an arraylist named r which can be between the sizes 0-144, and an arraylist named lasers that is always 4.
How can I iterate through and check for collision without the IndexOutOfBoundsException?
I have an arraylist named r which can be between the sizes 0-144, and an arraylist named lasers that is always 4.
How can I iterate through and check for collision without the IndexOutOfBoundsException?