I have two arrays, each filled with 1000 objects of my own class.
What I want is a recursive loop that will have the corresponding index values of each array interact in a predefined way.
Example:
Array One: 1, 3, 5, 7, 9
Array Two: 2, 4, 6, 8, 10
The way i want them to interact is Array Two minus Array One, then store that in a variable ('1' has a variable for this). Would I do this with a for loop or a while loop, and how would I do it?
EDIT:
Another question:
How would I achieve something like:
If (array[x] == 0)
do something
where x can be any index, and that code is running all the time?

