How using these libraries
import com.badlogic.gdx.utils.Array; import java.util.Iterator; Go through the elements of this list with a nested loop (Associate objects each with each)
Array<MyObject> objects; Tried to do
While(iteratorA.hasNext()) { ... While(iteratorB.hasNext()){ ... } } But it gives an error:
Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: #iterator () cannot be used nested.