Implement a Java program for searching words in a document. To enable efficient word search your code preprocesses the document and stores all the words found in the document and the lines where they are found in a hash table (the words are the keys an
Implement a Java program for searching words in a document. To enable efficient word search, your code preprocesses the document, and stores all the words found in the document and the lines where they are found in a hash table (the words are the keys, and the lines are the values). You may use Hashtable …