Is it possible to find out one missing element from one array that is not present in other array using single for loop in Java
e.g. a1 = {2,5,1,9,3,4} , length n+1
a2 = {2,4,1,5,3} , length n
missing element - 9 Using only a single for loop not by collections. Is it possible??