Hello fellow ranchers,
This is the scenario:
I have
string:
"In this game you play as a young man coming to Leaf Valley to start a farm, there you find the"
I have file with list of keywords:
play
man
bolt
hula
boolean detectWords(String toBeFiltered, File fileOfKeywords);
So basically I just want to find out if "any" of the keywords are present within the file and return true on first occurrence.
I imagine writing this algorithm would be easy enough but I don't trust myself to write efficient one.
I had in mind this:
I want to know if there is library that would allow me to run method like that very efficiently better yet with native methods.
I know about com.eaio.stringsearch.StringSearch but that is far passed my understanding level.
Any and all help would be greatly appreciated.
mat