I have 2 String arrays say A and B. both contains some strings. I want to compare array A with B to find the elements which are exist in both arrays.....
String[] a=new String[] {"alpha","beta"};
String[] b=new String[] {"alpha","beta","gamma","xxxx","yyyy"};
the result which I needed is alpha and beta...