I have 2 arrays.
String[] arrFirst={"a","b","c","d","e"};
String[] arrSecond={"a","b","f","d","g"};
String[] arrThird={"a","f","g","h","e"};
I want the results like for arrFirst and arrSecond , the result is 3
For arrFirst and arrThird, the result is 2
All the code that I found are comparing two arrays and return whether they are example the same or not.
But what I want is how many are matched.
I can do the looping way.
But I think it will take too much time and I am wondering whether there is any faster way.
Thanks..
You can use Intersect method.