I have around 1 million record. Which is similar to array of something like
String[] a1 = {"A,B,C","C,D,E",...so on};
String[] a2 = {"F,G,H","I,J,K",...so on};
.
.
.
String[] ax = {"X1,X2,X3","X4,X5,X6",...so on}; //x is near to one million.
What is best way to find if string array contains particular word i.e A or B?