for Example:
int[] a = [0,1,2,3,4,5];
int[] b = [3,4,5,6,7,8];
count = 3;
The arrays do not have to be consecutive numbers. How would I get the number of values that equal between these arrays?
edit: So I've attempted the following:
List<int[]> w = Arrays.asList(winning);
List<int[]> s = Arrays.asList(F1Select);
w.retainAll(s);
int equalNums = w.size();
But I'm getting the following error for the retainAll line:
Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException
at java.util.AbstractList.remove(Unknown Source)
at java.util.AbstractList$Itr.remove(Unknown Source)
at java.util.AbstractCollection.retainAll(Unknown Source)