import java.util.Arrays;
public class PJJJeden {
public static void main(String[] args) {
int[] tabA = {25, 14, 56, 15, 36, 36, 77, 18, 29, 49};
int[] tabB = {25, 14, 56, 17, 38, 36, 97, 18, 69, 99};
CheckVal(tabA, tabB);
}
public static boolean CheckVal(int tabA[], int tabB[]) {
for (int i = 0; i < tabA.length; i++) {
for (int j = 0; j < tabB.length; j++) {
if (tabA[i] == tabB[j])
System.out.println(tabA[i]);
}
}
return false;
}
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter