Java programming. Please help the end of this assignment isquickly approaching and I can’t find help.
How would you take two ArrayLists of Integers, and add themtogether to make a “sum” ArrayList of Integers?
Example:
ArrayList num1 [ 1 , 2 ] + ArrayList num2 [ 1 , 2 ] = ArrayListsum [ 2 , 4 ]
(12 + 12 = 24)
I know you have to loop through it and add each index to the sumarraylist, and that you need a variable to carry the 1, butanything I have found online deals with arrays, not ArrayLists.
I hope I provided enough information and made it
PayPal Gateway not configured
PayPal Gateway not configured