I need help coding the following problem in Java:
Write a complete Javaprogram to analyze a text file to determine which percentage ofwords are found in Shakespeare’s works. This is done by firstfinding all the unique words contained in Shakespeare, then sortingthem
- Declare a simple array of String (not a Collection class)called words with a maximum size of 31,000.
- Open the Project Gutenberg text file 100-0.txt which containsShakespeare’s complete works as a single file.
- Read each word in the file one at a time.
- Convert the word to lower case
- Remove all non a-z characters (punctuation)
- Search the words array using a linear searchto see
OROR