Android Question Summing elements of two arrays?

kostefar

Active Member
Licensed User
Longtime User
Dear All,

I don´t have any code to show here, since I don´t know about a way of doing this - please bare with me.

Let´s say I have two arrays, Array one with the values (1,2,3,4) and another one with values (5,6,7,8) and I want to produce a third array with values (6,8,10,12) being the sum of these two arrays.. is there a simple way of adding them together or do I need to loop through them with for i=0 to 3... next?

Thanks!
 
Top