I have an ArrayList of Integer.
a = {1, 2, 3, 4, 5}
b = {6, 7, 8, 9, 10}
I want to add the elements of the 2 arrays.
So, the new array will now be:
c = {7, 9, 11, 13, 15}
which is (1+6), (2+7), (3+8) and so on.
Is there a way to do this without a for loop? I am looking for something like a.add(b).