Java Program to Find Intersection of two Arrays
For example we have two sorted arrays a1[]={2,3,5,11} and a2[]={4,5,7,9,11} then intersection of a1 and a2 will be {5,11}. A Java program for finding intersection of two arrays is given below. Also Read: Java Program to Find Union of two Arrays Java Program to Find Intersection of two Arrays import java.util.Scanner; //import Scanner class in our …
