I have created two different object arraylist of n size. Once my first arraylist is full and no number are unique i will test again this time putting the second test values in arraylist 2. how can i then take the results in my arraylist1 and arraylist2 add each of the indexs and average them out.
arraylist1 (0) 400
(1) 401
(2) 402
arraylist2 (0) 399
(1) 400
(2) 401
then add arraylist1 + arraylist2 / number of arraylist = avgarraylist
can anyone help me out. I thought about a for each loop however that not working.
arraylist1 (0) 400
(1) 401
(2) 402
arraylist2 (0) 399
(1) 400
(2) 401
then add arraylist1 + arraylist2 / number of arraylist = avgarraylist
can anyone help me out. I thought about a for each loop however that not working.
Comment