These solutions all take O(n^2) time. You should leverage a hashmap/hashset for a substantially faster O(n) solution:
void findDupes(int[] a, int[] b) {
HashSet map = new HashSet();
for (int i : a)
map.add(i);
for (int i : b) {
if (map.contains(i))
// found duplicate!
}
}