myWizard 360 AAAM Stands for
Answers
Answered by
0
Explanation:
import java.io.*;
import java.util.*;
class GFG {
private static void FindCommonElemet(String[] arr1,
String[] arr2)
{
Set<String> set = new HashSet<>();
for (int i = 0; i < arr1.length; i++) {
for (int j = 0; j < arr2.length; j++) {
if (arr1[i] == arr2[j]) {
// add common elements
set.add(arr1[i]);
break;
}
}
}
for (String i : set) {
System.out.print(i + " ");
}
}
Similar questions
Computer Science,
23 days ago
Sociology,
23 days ago
Social Sciences,
1 month ago
Social Sciences,
1 month ago
Math,
9 months ago
India Languages,
9 months ago
English,
9 months ago