If String array contains a specific string : I have a string array(String []words) which gets populated during runtime and contains almost 400k members. I tried to check if the array contains a specific string : 

boolean check=Arrays.asList(words).contains ("code");

I know the "code" is already within the array, but i never get the check true as if the checking process isn't even taking place. I also tried with Hash sets but with no success. Can anyone tell where the problem is???