|
how to compare the elements of the two arraylists al1,al2
how to compare the elements of the two arraylists al1,al2
Let's say we have the following two lists:
al1=[10, 20, 30, 40]
al2=[11, 12, 13, 14, 15,16,17,18,19,20]
we have to compare 10/11,10/12,10/13,10/14,10/15,10/16,10/17,10/18,10/19,10/20,11,11,11/12,11/13,11/14,11/15,......................like that all the elements
so that we have to compare every element in the first list to every element in the second?
|