public static void main String args int arr1 int arr2 int arr3 int int

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
public static void main(String[] args) {
int[] arr1 = { 1, 2, 3, 5 };
int[] arr2 = { 4, 5, 5, 5, 6 };
int[] arr3 = { 2, 4, 5 };
int i;
int j = 0;
int a = 0;
int b = 0;
for (i = 0; i < arr1.length; i++) {
while (j<arr2.length) {
if (arr1[i] == arr2[j]){b++;break;}
j++;
if (j == arr2.length) { j = 0; break; }
}
while (a < arr3.length) {
if (arr1[i] == arr3[a]) { b++; break; }
a++;
if (a == arr3.length) { a = 0; break; }
}
if (b == 2) { System.out.println(arr1[i]); break; }
b = 0;
}
if (b == 0) { System.out.println("Число отсутствует"); }
}