Friday, 6 September 2013

Java: Most efficient way to check if a String is in a wordlist

Java: Most efficient way to check if a String is in a wordlist

I have an array of strings String[] words and a 28000 word Word-list.
I want to check if any member of the String array is in the WordList (the
word-list is in a text file wordlist.txt)
What is the most efficient way to go about this?

No comments:

Post a Comment