Write a java program to find intersection of two arrays.
Write a java program to find common elements in two arrays.
Given two sorted arrays, Write a java code to find intersection of two arrays. For example, if the input arrays are:
arr1[] = {2, 3, 6, 7, 9, 11}
arr2[] = {4, 6, 8, 9, 12}
Then your program should print intersection as {6, 9}
Code link - [ Ссылка ]
Ещё видео!