/** * This is the main entry point into the program. */ static public void main(String[] args) { System.out.println("Starting SimpleSearchStream"); // Create an input string containing the lyrics to the // do-re-mi song. String input = TestDataFactory.getInput(sINPUT_FILE, "@").get(0); // Get the list of words to find. List<String> wordsToFind = TestDataFactory.getWordList(sWORD_LIST_FILE); // Create an object that can be used to search for words in // the input. WordSearcher wordSearcher = new WordSearcher(input); // Print all matching words. wordSearcher.findAndPrintWords(wordsToFind); System.out.println("Ending SimpleSearchStream"); } }